Results 1 to 3 of 3

Thread: reloading the store after ajax request

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    80
    Answers
    1
    Vote Rating
    1
      0  

    Default reloading the store after ajax request

    I have a feature that enables you to copy a record. You click a button "copy record" this makes an ajax request and i wish to reload the store. I am doing the following but my combo box goes into a loading state that never resolves. Am i doing this the wrong way.

    Code:
    	var combo = Ext.getCmp('processparts');
    		var store  = combo.getStore();
                        Ext.Ajax.request({
                            method: 'POST',
                            url: '/Part/Copy',
                            params: { Id: processPartId, Name: partName },
                            success: function (result, request) {
    				store.load();		
                            }
                        });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    What Ext JS 4 version are you using? Pretty sure there was a load mask issue in 4.0.7 that was fixed in 4.1.0
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    80
    Answers
    1
    Vote Rating
    1
      0  

    Default

    aah, that would explain it. 4.0.7

Posting Permissions

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