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

How can we merge the custom filters with existing filters.

3 Answers 248 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raj Yennam
Top achievements
Rank 1
Raj Yennam asked on 30 Dec 2013, 09:06 AM
Hi ,

How can we merge the custom filters with existing filters.

Thanks,
Raj Yennam

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 30 Dec 2013, 01:17 PM
Hello Raj,

Would you please elaborate a bit more on what exactly do you want to do with the Kendo UI Grid filters. Basically the filters are part of an object that holds the logic and an array of filters, you can add more items to this array to create complex filters. Please check the following example:

http://jsbin.com/UQeYiRej/1/edit

If this is not what you are asking for, please elaborate a bit more, so we can understand your question correctly.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Raj Yennam
Top achievements
Rank 1
answered on 31 Dec 2013, 09:26 AM


Hi Kiril Nikolov ,

Thanks for your quick reply. I entered "Bern"in the ship city column  filter's first textbox and clicked on "filter" button . 8 records are selected from the grid. if i click on filter button (below the grid). i am expecting that the filters should be applied on those 8 records.  how can we merge _fltMain filters with the existing "ship city
 filter.

Thanks,
Raj Yennam

 
0
Dimo
Telerik team
answered on 31 Dec 2013, 01:13 PM
Hello Raj,

The Grid dataSource has a filter method. You can use it to:

1. Retrieve the current filter state as an object
2. Add new filter expressions to the object
3. Apply new mixed filtering by executing the filter method and pass the new object as a parameter

In this way you will achieve "mixed" filtering, which can be very flexible and powerful.

Regards,
Dimo
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
Raj Yennam
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Raj Yennam
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or