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

How to filter datasource using QueryStringParameter

1 Answer 147 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Marko
Top achievements
Rank 1
Marko asked on 16 Jan 2012, 07:32 AM
Hi,

I'm newbie with js and HTML5. I have no idea how to pass value from QueryStringParameter (set in URL) and filter KendoDataSource ?

http://www.myapp.aspx?orderID=1234

example:

 $("#grid").kendoGrid({
                        dataSource: {
                            type: "odata",
                            serverFiltering: true,
                            filter: [{ field: "Order_ID", operator: "equals", value: 1234}
                            ]



BR
Marko

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 17 Jan 2012, 10:47 AM
Hello,

If you are using OData service you don't need to do anything as the Kendo DataSource would translate the filter expressions to OData format out of the box.

Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Marko
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or