[CLOSED] Problem with store reload

  1. #1

    [CLOSED] Problem with store reload


    public ActionResult reloadgrid()
                object[] o = GetData().Cast<object>().ToArray();
                return this.Store(o);

    Button Code in View

                                                .Listeners(l => l.Click.Handler = "return validation();")
                                                .DirectEvents(de =>
                                                    de.Click.FormID = "f";
                                                    de.Click.Action = "save";
                                                    de.Click.EventMask.ShowMask = true;
                                                    de.Click.EventMask.Msg = "Saving...";
                                                    de.Click.EventMask.MinDelay = 100;
                                                    de.Click.After = "App.GridPanel1.getStore().reload();";
    Code in gridpanel in view

                    .Url(Url.Action("reloadgrid", "DefindTask"))
    The problem is,data in grid not refresh every time ,for example,I click on save 3 times grid data refresh on 4th time not refresh but when i click for 5th time its working again.that means on 4th click grid not showing 4 rows its shows 3rows but on 5 4th click its shows 5 rows including the 4th row.

    And its happen frequently.but not any sequence ,Its happen sometime after 1click sometime on 5th click or 10th click.Is there any problem in my code?
    Last edited by Daniil; Jun 27, 2014 at 10:56 AM. Reason: [CLOSED]
  2. #2
    Hi @matrixwebtech,

    Please replace
    With that change it should work well.

    An After handler is executed after client-side part of a DirectEvent. Just after making a request to server, but the request hits server.

Similar Threads

  1. Replies: 1
    Last Post: Nov 07, 2013, 8:27 PM
  2. Replies: 2
    Last Post: May 24, 2013, 1:54 AM
  3. [CLOSED] Problem with focusRow() on Store.reload() with Firefox
    By csharpdev in forum 1.x Legacy Premium Help
    Replies: 21
    Last Post: Nov 18, 2010, 11:26 AM
  4. Store.reload() problem
    By Dgsoft.ru in forum 1.x Help
    Replies: 1
    Last Post: May 28, 2009, 2:14 PM
  5. Databind / Reload Store and GridPanel Problem
    By locoperoguapo in forum 1.x Help
    Replies: 5
    Last Post: Feb 10, 2009, 9:23 AM

Posting Permissions