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

Ajax parameters

1 Answer 183 Views
Grid
This is a migrated thread and some comments may be shown as answers.
OfficeHeart
Top achievements
Rank 1
OfficeHeart asked on 20 Aug 2012, 03:20 PM
Hi,

We are porting our Telerik MVC project to Kendo MVC.
How can we achieve this with Kendo?

Clientside rebind
var grid = $('#DaGrid').data('tGrid');
grid.refresh(
{
searchfilter: search
}
);

c#
public ActionResult Select_archief(string searchfilter)
        {
....
}

Thus a rebind with filter parameter.

Thanks,
Martin

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 23 Aug 2012, 08:11 AM
Hello Martin,

You should use the Grid DataSource read method to reload the data and pass an additional parameter. For example:

grid.dataSource.read({searchfilter: "search"});
If you wish to pass the parameters every time a request is made, you should use the Data function of the request. 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!
Tags
Grid
Asked by
OfficeHeart
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or