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

Grid Filter

3 Answers 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
gdycus
Top achievements
Rank 1
gdycus asked on 21 Nov 2011, 06:34 PM
I have a search form beside the grid and when someone does a search I need it filter the grid. Is the below code how I would accomplish this or is this only a client-side solution? The filtering will happen on the server side. If the below code is also used server side filtering, how do I interpret the querystring on the GET request?


this.submitSearch = function () {
    dataSource.filter(
        { field: "FirstName", operator: "eq", value: $('FirstName').val() },
        { field: "LastName", operator: "eq", value: $('LastName').val() },
        { field: "Email", operator: "eq", value: $('Email').val() },
        { field: "Phone", operator: "eq", value: $('Phone').val() },
        { field: "ReservationDate", operator: "eq", value: $('ReservationDate').val() }
    );
}

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Nov 2011, 09:13 AM
Hi Gdycus,

 You need to translate the datasource filtering expression so your server side end point can understand it and perform the filtering. Here is a sample implementation.

Regards,

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!
0
Bill
Top achievements
Rank 1
answered on 08 Jan 2014, 08:51 PM
Bogus link in prior post...
0
Atanas Korchev
Telerik team
answered on 09 Jan 2014, 08:00 AM
Hi,

Yes, it seems this link has been deleted. Do you need assistance with anything?

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