[CLOSED] [Razor] Paging without Store Proxy

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] [Razor] Paging without Store Proxy

    I have a form panel which submits the form to a controller method via a direct event and loads the store for a grid panel

                        .Title("Enter Search Criteria")
                        .Buttons(buttons =>
                                .DirectEvents(directEvents =>
                                    directEvents.Click.ExtraParams.Add(new Parameter("start","0", ParameterMode.Raw));
                                    directEvents.Click.ExtraParams.Add(new Parameter("limit", "30", ParameterMode.Raw));
                                    directEvents.Click.Url = "/Services/Search";
                                    directEvents.Click.Success = "#{store1}.loadData(result.extraParamsResponse.data); #{pnlSearchForm}.collapse(true)";
    The controller method (/Services/Search) basically returns an AjaxResult as follows as I was told StoreResult would not work in this case:
    AjaxResult r = new AjaxResult()
                    ExtraParamsResponse =
                        new Parameter()
                            Name = "data",
                            Value = JSON.Serialize(gridResults),
                            Mode = ParameterMode.Raw
                return r;
    My issue is that I now need to add paging to the gridpanel and when I add a paging toolbar to the gridpanel it doesn't appear. I suspect this is because the AjaxResult I'm returning and loading directly into the store has no idea what the total count is and/or there is other data that the store expects for paging that are not available? How can I go about paging in my case?
    Last edited by Daniil; Jun 04, 2012 at 8:41 AM. Reason: [CLOSED]

Similar Threads

  1. Replies: 0
    Last Post: Jun 03, 2012, 4:46 AM
  2. [CLOSED] store.proxy.ro question
    By deejayns in forum 1.x Premium Help
    Replies: 3
    Last Post: Jan 04, 2012, 9:17 PM
  3. Multicombo store proxy
    By David Pelaez in forum 1.x Help
    Replies: 1
    Last Post: Feb 08, 2011, 2:27 PM
  4. local paging using http proxy and partialview
    By craig2005 in forum 1.x Help
    Replies: 9
    Last Post: Jan 05, 2011, 8:04 PM
  5. [CLOSED] set Proxy URL of Store at runtime.
    By farisqadadeh in forum 1.x Premium Help
    Replies: 1
    Last Post: Dec 22, 2010, 8:11 AM

Posting Permissions