Search:

Type: Posts; User: tianhao

Search: Search took 0.01 seconds.

  1. version: extjs407gpl.\nI just want to get the...

    version: extjs407gpl.\nI just want to get the position of the sprite before drag and after drop.\nor the offset of movement.\nthx.
  2. How to Get Position of Sprite and Get Distance of Sprite Movement

    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
    5
    Views
    1,867

    I also have the same problem, and I tried the two...

    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' ){...

    if ( this.getValue() == '0' ){
    this.setValue('');
    }
  5. Replies
    1
    Views
    511

    use filter, like this...

    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...

    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...

    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: ...

    this can solve my problem:


    Ext.onReady(function(){
    var mainPanel = Ext.create('Ext.grid.Panel', {......});
    });
    mainPanel.render(document.body);
    setTimeout(function(){
    var...
  9. focus and scroll to a certain record in a grid

    hi all,i have the following code to focus and scroll to a certain record in a grid:

    Ext.onReady(function(){
    var mainPanel = Ext.create('Ext.grid.Panel', {......});
    });...
  10. how to add a rectangle onto a ext.chart.Chart

    hi all,
    i create a simple chart like ...
    Ext.create('Ext.chart.Chart', { ...,store:...,axes:... });
    ...it works without error.
    then i want to add rectangles onto the chart, according to their...
  11. Replies
    9
    Views
    9,987

    best answer!

    best answer!
  12. use dockedItems with dock='right'

    use dockedItems with dock='right'
  13. how to arrange an textfield and a button to one line horizontally?

    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

    thank you very much
  15. how can i change the url of a ajax proxy of a data.store dynamically

    hi,
    this is the code of a data store with ajax in a gridpanel:
    xtype: 'gridpanel',
    ......
    store: Ext.create('Ext.data.Store',{fields: [...],proxy: {type: 'ajax',url: 'duty.json.ajax.php',...}})...
  16. sorry i made a mistake. response data must...

    sorry i made a mistake. response data must include column name like this:
    "duty_id": 3 not only 3.
  17. how is the output format of php response to ajax request of grid

    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. Replies
    4
    Views
    710

    it didnot work console prompted ok when i run...

    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. Replies
    4
    Views
    710

    how to pass a parameter through ajax

    hi all,
    i have finished an ajax grid. it works good. here is the code:
    xtype: 'gridpanel',
    id: 'mygrid',
    ......
    store: Ext.create('Ext.data.Store',{proxy: {type: 'ajax',url:...
  20. Replies
    2
    Views
    3,782

    Thank you very much. It works!

    Thank you very much. It works!
  21. Replies
    2
    Views
    3,782

    how to get node's id & text of a treepanel

    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
    4
    Views
    1,733

    Thank you very much! I have changed code like...

    Thank you very much!
    I have changed code like this:
    this.up('form').child('[id=theTree]').expandAll();
    It works!
  23. Replies
    4
    Views
    1,733

    Can you give the explicit sample code for me...

    Can you give the explicit sample code for me please. Thank you for your earliest reply.
  24. Replies
    4
    Views
    1,733

    how to get treepanel reference

    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 25