Search Type: Posts; User: tianhao

Search: Search took 0.01 seconds.

  1. if ( this.getValue() == '0' ){
  2. Replies
    use filter, like this
    Ext.getCmp('ur_grid').getStore().filter('ur_col', eval( filter ));
    which filter is reg. exp. pattern
    see api docs for filter
  3. thanks to ashu2289, i will try the code in my page.
    also thanks to yyogev for your remind. delay focus did it because i loaded data to the grid with ajax.
  4. yes, delay solves the problem.
    but i have no idea except this one.
    i also have not catched any event about scrolling.
    still waiting for the best solution.
  5. this can solve my problem:

    var mainPanel = Ext.create('Ext.grid.Panel', {......});
  6. hi all,i have the following code to focus and scroll to a certain record in a grid:

    var mainPanel = Ext.create('Ext.grid.Panel', {......});
  7. hi all,
    i create a simple chart like ...
    Ext.create('Ext.chart.Chart', { ...,store:...,axes:... }); works without error.
    then i want to add rectangles onto the chart, according to their...
  8. best answer!
  9. use dockedItems with dock='right'
  10. hi all,
    i have a form like this: extjs4
    xtype: 'form',......
    items: [{ xtype: 'textfield', fieldLabel: 'query string', id: 'query' }],
    buttons: [{ text: 'query' }]......
    so, the textfield and...
  11. thank you very much
  12. hi,
    this is the code of a data store with ajax in a gridpanel:
    xtype: 'gridpanel',
    store: Ext.create('',{fields: [...],proxy: {type: 'ajax',url: 'duty.json.ajax.php',...}})...
  13. sorry i made a mistake. response data must include column name like this:
    "duty_id": 3 not only 3.
  14. hi
    here is grid which data store is ajax. when i use static text file, it works fine. here is the code of url definition:
    url: mytext.txt
    and the content is:
    "items": [
  15. it didnot work
    console prompted ok when i run Ext.getCmp('id').getValue(). the result is 4. that is right.
    any help will be appreciated.
  16. hi all,
    i have finished an ajax grid. it works good. here is the code:
    xtype: 'gridpanel',
    id: 'mygrid',
    store: Ext.create('',{proxy: {type: 'ajax',url:...
  17. Thank you very much. It works!
  18. Hi all,
    I can get id and text of the node when I expand a node in a treepanel. The code added to listeners like this:
    listeners: { itemexpand: function(node) { alert( node.get('id') +...
  19. Replies
    Thank you very much!
    I have changed code like this:
    It works!
  20. Replies
    Can you give the explicit sample code for me please. Thank you for your earliest reply.
  21. Replies
    I have a treepanel in an ext.form.panel using "xtype:'treepanel'" and "id:'theTree'" within items of the ext.form.panel. The question is how I can get the tree reference, or how I can run this js...
Results 1 to 21 of 21