This is a migrated thread and some comments may be shown as answers.

[Solved] How to pass filtered telerik mvc grid data to action

0 Answers 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Barış
Top achievements
Rank 1
Barış asked on 12 Nov 2012, 07:34 PM

I have a custom command that when i pass filtered telerik mvc grid data, it is always null.How to pass filtered data to action? I try this code= `$("#Grid").data("tgrid") but result data is current page's data. I want to get all filtered data.

my code is

 @model IEnumerable<IsTalep.Models.ViewModel.Ask_Answer>

        ToolBar(tool => tool.Custom()
                        .HtmlAttributes(new { id = "print" })
                        .Text("Yazır")
                              .Action("UnitReport", "RaporTur", new { data=Model}))

        public ActionResult UnitReport(GridModel data) or  public ActionResult UnitReport(Ask_Answer data)
Tags
Grid
Asked by
Barış
Top achievements
Rank 1
Share this question
or