Declined
Last Updated: 24 Nov 2014 15:58 by ADMIN
deepak
Created on: 24 Nov 2014 15:53
Category: Kendo UI for jQuery
Type: Feature Request
1
how to handle default filter option in the Kendo grid UI
I am facing a problem in the Kendo grid, I want to apply default filter criteria on the data source. To achieve this functionality, I am filling the filtered data on the first initialization of the data source and then adding the filter criteria on the JavaScript side by using the code.
       masterFilters.filters.push(eventTypeFilters);
        masterFilters.filters.push(roleTypeFilters);   
      dateviewGrid.dataSource.filter(masterFilters);   

But due to this, Http request of the AJAX call is being repeated on the code statement dateviewGrid.dataSource.filter(masterFilters);   

To resolve this problem, I have tried following options,

1) I have returned the zero records at the time of initialization of the data source, but it is giving another hit on the virtualization method.
2) But when I am returning at least one row at the time of initialization of the data source, 
It is not throwing extra hit on the virtualization method.
It is showing strange behaviour. Is there any bug in the Kendo grid?.
Please suggest a right approach to achieve this functionality,
If you want some more clarification on this problem, let me know.





 

    
1 comment
ADMIN
Telerik Admin
Posted on: 24 Nov 2014 15:58
For technical questions and issues reports you need to use our public forums or support ticketing system on telerik.com. Thus they will be reviewed and answered by our support staff.

Thank you for your understanding.