Search Type: Posts; User: tianhao

Search: Search took 0.02 seconds.

  1. version: extjs407gpl.\nI just want to get the position of the sprite before drag and after drop.\nor the offset of movement.\nthx.
  2. I've drawn an Ext.draw.Sprite. How can I get the position and the distance of movement ( or the original and final position ) of the Sprite when I drag drop it. Code like this:
    DrawComponent =...
  3. Replies
    I also have the same problem, and I tried the two ways mentioned above but failed. Finally I found the solution like this: Clear the data store of the grid and then load data....
  4. if ( this.getValue() == '0' ){
  5. 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
  6. 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.
  7. 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.
  8. this can solve my problem:

    var mainPanel = Ext.create('Ext.grid.Panel', {......});
  9. 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', {......});
  10. 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...
  11. best answer!
  12. use dockedItems with dock='right'
  13. 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...
  14. thank you very much
  15. 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',...}})...
  16. sorry i made a mistake. response data must include column name like this:
    "duty_id": 3 not only 3.
  17. 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": [
  18. 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.
  19. 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:...
  20. Thank you very much. It works!
  21. 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') +...
  22. Replies
    Thank you very much!
    I have changed code like this:
    It works!
  23. Replies
    Can you give the explicit sample code for me please. Thank you for your earliest reply.
  24. 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 24 of 24