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
How can we merge the custom filters with existing filters.
Thanks,
Raj Yennam
3 Answers, 1 is accepted
0
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
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
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
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!