[CLOSED] Batch Update with MVC

Page 2 of 2 FirstFirst 12
  1. #11
    ok. i fixed it finally. missing an import.

    Now i can return this.Direct()

    If i return this.Direct, i see a this Controller controller which is an extension.

    public static DirectResult Direct(this Controller controller);
    How can i handle to include my custom objects. Previously, i made copy of StoreResult and add params and return AjaxStoreResult. Is this no longer possible?

    I know that this.DirectResult() will work, i need to include my additional params though.

    Thanks,
    /Z
  2. #12
    verified this.Direct() works fine from the controller.
    /Z
  3. #13
    return this.Direct() is just a helper/shorthand method.

    It is actually:
    DirectResult r = new DirectResult();
    
    return r;
    So, you could try to extend the DirectResult class.
  4. #14
    ok. after much pain, i finally solved it all and tracked down the problem.

    previous, httpProxy was using an StoreResult since it was submitted via the store. While i moved the HttpProxy to a DirectEvent, i did not move the corresponding StoreResult to a DirectResult.

    This caused a host of issues.

    I Updated our local AjaxResult object to be copy of DirectResult and updated our inheritance hierarchy. Then i utilized the ExtraParamsResponse instead of the old Message obj that i was using the StoreResult since the only thing that serialized to JSON is the ExtraParamsResponse.

    Then i tweaked our JS from using the Store SAVE callback to the DirectEvent Success method.

    fun stuff. Thanks for helps. Let hope we dont have do this again :)

    u can close this now.
    /Z
  5. #15
    From the earlier posting...

    Please see the HandleChanges controller action in this example.
    http://mvc.ext.net/#/GridPanel_Update/Batch

    However, if i click on Source Code link, i get a page not found error.

    thanks.
    /Z
  6. #16
    Great to hear you have solved the issue.

    Please see the HandleChanges controller action in this example.
    http://mvc.ext.net/#/GridPanel_Update/Batch

    However, if i click on Source Code link, i get a page not found error.
    Interesting, this didn't happen yesterday. When I tried today, I reproduced. But then I refreshed the page with Ctrl+F5 (refreshing with cache reset), it started working again. Please try.
  7. #17
    Please close.
    /Z
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [CLOSED] Batch Update Issue
    By shaileshsakaria in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 03, 2013, 7:08 AM
  2. [CLOSED] GridPanel Batch Update does not send data
    By chrish in forum 2.x Legacy Premium Help
    Replies: 11
    Last Post: Feb 18, 2013, 3:38 AM
  3. Replies: 1
    Last Post: Feb 17, 2013, 3:49 PM
  4. Batch Update
    By shaileshsakaria in forum 2.x Help
    Replies: 1
    Last Post: Jan 18, 2013, 4:17 PM
  5. [2.1] GridPanelFor Batch Update
    By millenovanta in forum 2.x Help
    Replies: 20
    Last Post: Dec 26, 2012, 12:27 PM

Posting Permissions