简体   繁体   中英

How to get filtered value from kendo grid?

My question is how can I fetch filtered value to use it for further operation? and also how can I use footertemplate value? I searched at many forums and telerik method option also but not getting what i want. Please help me if anyone know answer

Thanks!

I tried this:

var dataSource =  $("#report").data("kendoGrid").dataSource; 

 var filteredDataSource = new kendo.data.DataSource({ 
     data: dataSource.data(), 
     filter: dataSource.filter() 
 }); 

filteredDataSource.read();

var data = filteredDataSource.view();

I have created a fiddle for you to check out. It appears that your code does indeed return the filtered data on clicking "Run" below the grid and looking at the console window. So, it is not clear what you are having trouble with. Do you have any browser console errors?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM