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

[Solved] Get the filtered rows from a grid?

1 Answer 1523 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James Boman (IPMO)
Top achievements
Rank 1
James Boman (IPMO) asked on 17 Mar 2015, 01:28 AM
Hi there,
   I am using a kendo ui grid to let the user filter down a large dataset - and I am interested in the resultant row.

Because the dataset is large, I am using these options:

serverPaging
serverFiltering

Once the user is finished they need to press a button and I need to get the results from the grid ... even if they extend over more then 1 page.

I expected this would be an easy task to get the datasource object and re-query the data somehow for the number of pages.

The pageSize is known, and the total number of rows after filtering is already known:
datasource.total()

So what I am missing is the call to the datasource to get a particular page of filtered data...

This question has already been asked in the DataSource forum and the answer provided by Iliana is shown to not be working for remote data:
http://www.telerik.com/forums/get-filtered-data-from-paged-grid
(It only gets the filtered results from the first page)
With a quick demonstration of the problem and Illiana's solution here: http://dojo.telerik.com/@JBoman32768/EKUGe

Any help on this would be really appreciated - as I really don't want to have to write my own filter UI, or load the complete dataset into the browser.

Cheers,
   James.


1 Answer, 1 is accepted

Sort by
0
James Boman (IPMO)
Top achievements
Rank 1
answered on 17 Mar 2015, 02:46 AM
Never mind - I figured it out.

http://dojo.telerik.com/@JBoman32768/Ucudi
Tags
Grid
Asked by
James Boman (IPMO)
Top achievements
Rank 1
Answers by
James Boman (IPMO)
Top achievements
Rank 1
Share this question
or