1. #11
    Ext User
    Join Date
    Jul 2007
    Posts
    7
    Vote Rating
    0
    Bobbyj is on a distinguished road

      0  

    Lightbulb


    "How about a grid which users are able to edit a bunch of records at once and then click a button and hit save?"

    - You should grab the modified records and send them all in one post. That way you can report back any errors in one response. The Ext.Ajax.request works great for this.

  2. #12
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,098
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Quote Originally Posted by Bobbyj View Post
    "How about a grid which users are able to edit a bunch of records at once and then click a button and hit save?"

    - You should grab the modified records and send them all in one post. That way you can report back any errors in one response. The Ext.Ajax.request works great for this.
    Yup... and done it a million times. How many times have you written some code that calls getModifiedRecords(), loops over that record set, grabs out the data you want and then posts it. It's a bunch of boiler plate code thats just not necessary.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #13
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default


    Is there a tutorial or example of how to use EditorGridPanel and DirectStore to edit records.
    Also, I was thinking of how to use/extend DirectStore to make a GroupingDirectStore.
    Thanks much.

  4. #14
    Ext User shibubh's Avatar
    Join Date
    Jul 2007
    Location
    Lamahi,Dang Nepal
    Posts
    449
    Vote Rating
    0
    shibubh is on a distinguished road

      0  

    Default


    if you r dotnet user then yes
    check this
    http://ny504427.bizhostnet.com/
    Shibu Bhattarai

    Use JavaScript beautifier to beautify you code http://jsbeautifier.org/

    Code Conventions http://javascript.crockford.com/code.html

    ExtJS Core Manual http://extjs.com/products/extcore/manual/

  5. #15
    Sencha User
    Join Date
    May 2009
    Posts
    15
    Vote Rating
    0
    eallik is on a distinguished road

      0  

    Default


    Quote Originally Posted by grzegorz.borkowski View Post
    One interesting point is chaining the requests for performance. On the other hand, this requires that there are really many requests send: say 5 requests per second. Well, it's hard to imagine for me that the user could do so many operations in so short time: update one record, add another one, and delete yet another one in less than one second? I'm not so sure about it...
    Reading your post, I'm immediately thinking HTTP 207 - the HTTP response that can respond with multiple HTTP status codes at once. I assume you'd have to send multiple requests at once as well for responding with multiple statuses to have any meaning.