Results 1 to 5 of 5

Thread: Rejecting changes on a grid in ExtJS 4.0

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Bangalore, INDIA
    Posts
    51
    Vote Rating
    0
      0  

    Question Answered: Rejecting changes on a grid in ExtJS 4.0

    Hi all..!

    I am in the process of changing a web application from ExtJS 1.1 to ExtJS 4.0.
    Can anyone please tell me how to reload the grid in case of ExtJS 4.0.?
    The ExtJS 1.1 equivalent is shown below:

    var reloadGrid = function(){
    grid.getDataSource().rejectChanges();
    grid.getDataSource().reload({params:{start: 0, limit: paging.pageSize}});
    tabs.activate('view');
    tabs.disableTab('edit');
    };

    Any other comments on the code are also welcome.

    Thank you in advance!

  2. If you reload the store or change any of it's data, the grid will automatically reflect these changes.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,411
    Answers
    3898
    Vote Rating
    1290
      0  

    Default

    At what point do you want to reject changes?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

  4. #3
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Bangalore, INDIA
    Posts
    51
    Vote Rating
    0
      0  

    Default

    I am sorry... I actually want to reload the grid. By mistake I wrote it as reject. Can u help? I have made the changes in the post, please check.

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,411
    Answers
    3898
    Vote Rating
    1290
      0  

    Default

    If you reload the store or change any of it's data, the grid will automatically reflect these changes.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

  6. #5
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Bangalore, INDIA
    Posts
    51
    Vote Rating
    0
      0  

    Default

    Thank you!

Posting Permissions

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