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

Retrieving Filtered Rows

2 Answers 173 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 28 Jun 2018, 10:55 AM

Hi,

I currently export using a custom function that takes the grid as an argument and passes it to the function to create the excel,however when i filter my grid to only show a few items it still prints all of the original items in the grid which have been filtered out 

I Know it is exporting them all to the function because obviously they still live in the grid,i was wondering there was a way i could create another grid and set it to the filtered grid with only the displayed rows or whether i can remove those rows from my grid before sending it to my function 

I Do now want the use the export function provided by telerik as i have a very specific layout that my excel must have and this function is to be used by hundreds of Screens in the future

 

Kind Regards

Josh

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 28 Jun 2018, 11:03 AM
Hi Josh,

In your export function, you can iterate the ChildRows collection. It will contain only the rows that are currently in the grid. 

Let me know how this works for you.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Joshua
Top achievements
Rank 1
answered on 28 Jun 2018, 11:15 AM

Hi Dimitar,

Thank you for getting back to me so quickly.

It worked perfectly thank you so much 

Tags
GridView
Asked by
Joshua
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Joshua
Top achievements
Rank 1
Share this question
or