1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    80
    Vote Rating
    1
    Answers
    1
    Anthony.Hall is on a distinguished road

      0  

    Default Unanswered: reloading the store after ajax request

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    Answers
    3566
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    80
    Vote Rating
    1
    Answers
    1
    Anthony.Hall is on a distinguished road

      0  

    Default


    aah, that would explain it. 4.0.7

Thread Participants: 1