Results 1 to 2 of 2

Thread: How do I reload store from different window

  1. #1

    Default How do I reload store from different window


    this is my scenario:
    I've GridPanel inside View Port which has double click event to open a new window for a corresponding record that is double clicked. Now when i change the record in the new window( record's field change or delete record itself) i need to reload the store for the GridPanel to reflect the changes just made from window. i was trying to access the Gridpanel's store using its autoRef without any success.

    this is what i did so far:

    onDeleteButtonClick:function(e, t)

    var transaction_key=this.Trans_key;
    Ext.Msg.confirm( 'Delete Order', 'Are You sure you want to Delete this order?',function(btn)
    if(btn === 'yes'){

    //if the user has accepted
    url: '/4DACTION/web_build_json_data/'+SessionID+'/DeleteOrder/',
    method: 'POST',
    params: {Trans_key:transaction_key},
    success: function ( result, request) {

    Ext.MessageBox.alert('Success', 'Order has been deleted.');



    failure: function ( result, request) {
    Ext.MessageBox.alert('Failed', 'Connection aborted');
    //scope: this


    //if the user has canceled



    underlined text is what i did to reload the sore of Gridpanel and 'OrderGrid' is the autoRef of that grid.
    but it say OrderGrid is not defined. i don't know what is wrong.
    any help would be appreciated.


  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    The Netherlands


    1. What is 'this'. Did you set the scope correctly?
    2. I would handle this differently:
    The window doesn't need to know anything about the grid, it should just fire a custom event ('orderdeleted'?). The component that holds the grid would then attach a 'orderdeleted' event handler to the window that does a grid reload.

Similar Threads

  1. Combo Boxes in Window fail to reload store
    By ArtBuilders in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 24 Mar 2010, 8:14 PM
  2. Store Reload
    By dirkpitt_10 in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 9 Nov 2009, 4:22 AM
  3. [Solved]store.getCount() after store.reload()
    By adbox in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 6 Feb 2009, 1:49 PM
  4. Mask a grid before store.reload() method and Unmask after store.reload()
    By faqlcp in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 23 Nov 2008, 10:05 AM
  5. reload store from other window
    By vironitronox in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 2 Oct 2008, 5:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts