[CLOSED] How to send filter, sort, start & Limit parameters of a store in button Directevent

  1. #1

    [CLOSED] How to send filter, sort, start & Limit parameters of a store in button Directevent

    How to send in DirectEvents of button btnExport the store filters, sorts and PagingToolbar's start & limit parameters to controller's action

    x.GridPanel()
    .ID("gpEntidades")
    .Title("Entidades")
    .Header(false)
    .RowLines(true)
    .ColumnLines(true)
    .Store(x.Store()
    .ID("stEntidades")
    .RemoteFilter(true)
    .PageSize(50)
    .Proxy(x.AjaxProxy()
    .Url(Url.Action("GetList", "Entidad"))
    .FilterParam("filter")
    .SortParam("sort")
    .Reader(reader => reader.Add(x.JsonReader().RootProperty("data").TotalProperty("total"))))
    .Model(Model))
    .TopBar(
    x.Toolbar()
    .Items(
    x.Button()
    .ID("btnExport")
    .Icon(Icon.PageExcel)
    .Text("Listado Completo")
    .DirectEvents(d=>
    {
    d.Click.Url = Url.Action("ExportToExcel", "Entidad", new { start = -1, limit = -1 });
    d.Click.IsUpload = true;
    d.Click.FormID = "form1";
    })))
    .BottomBar(
    x.PagingToolbar()
    .DisplayInfo(true)
    .DisplayMsg("Mostrando entidades {0} - {1} de {2}")
    .EmptyMsg("No se encontraron entidades"))
    Last edited by Daniil; Jul 23, 2015 at 7:07 PM. Reason: [CLOSED]
  2. #2
    Hello, @keeper!

    This example shows how do you send additional parameters to a DirectEvent:
    Summary of DirectEvents

    If this is not enough to help you solve your issue, please provide us a working example reproducing the issue so we can show in it exactly what has to be made in order to have the desired parameters being passed.

    Please let us know if this helps you.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello fabricio.murta

    Thanks for the help, but i solved making ajax request.

    Thanks anyway.

Similar Threads

  1. [CLOSED] How to send parameters to listener with options
    By dataworks in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 05, 2014, 8:56 PM
  2. Replies: 3
    Last Post: Apr 30, 2013, 7:01 PM
  3. send extra parameters on blur event of textfield editor inside gridpanel
    By aditya.murthy88@gmail.com in forum 1.x Help
    Replies: 2
    Last Post: Dec 11, 2010, 12:04 PM
  4. params start,limit,sort,dir query
    By heysol in forum 1.x Help
    Replies: 0
    Last Post: Apr 17, 2009, 8:21 PM
  5. Replies: 1
    Last Post: Jul 14, 2008, 7:07 PM

Tags for this Thread

Posting Permissions