This is a migrated thread and some comments may be shown as answers.
GridCommand is empty after postback
2 Answers 22 Views
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 30 Jan 2013, 11:01 AM
Hi,
I have this code:
public ActionResult Index(MovieViewModel model, GridCommand command)
{
...
}
But command is empty after for example sorting or changing page in the grid.

In old Telerik Mvc grid there was an attribute to set on the ActionResult. Do I need something similar here?

/Mattias

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 01 Feb 2013, 06:14 AM
Hello Mattias,

Kendo UI for MVC uses the DataSourceRequestAttribute to populate the query parameters into a DataSourceRequest. More information can be found in the following topics:

Kind regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mattias
Top achievements
Rank 1
answered on 01 Feb 2013, 07:58 AM
Thank you Daniel! :)
Tags
Grid
Asked by
Mattias
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Mattias
Top achievements
Rank 1
Share this question
or