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

Local Data Virtualization and Show/Hide Rows

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 28 Mar 2014, 10:31 PM
Hello Kendo Masters,

We have a need to show/hide rows in a grid that is virtualized via local data.  
We believe this is possible, as we see the grid adjust correctly when one a page is swapped out, after performing a show/hide of a row on the previous page.

However, if we perform a similar action on the last page...we do notice issues - namely we can't get to newly visible rows or hidden rows will cause permanent over-scroll.

What is the correct method, or set of methods for us to call in order to simulate a page change/update in this scenario?

Apologies if I am using the wrong terminology here...but, we simply want the scroll bar calculations to adjust after a row show/hide.

Regards!

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 01 Apr 2014, 03:56 PM
Hi Matt,

Hiding Grid rows is currently not supported out of the box. I am not exactly sure how you have implemented it, however leaving the range will destroy the <tr> elements, so the next time this range is rendered, new <tr> elements will be inserted into the DOM and they will be visible. Also I am not sure what you mean by saying "can't get to newly visible rows" - if it is the last page there should not be any new rows below. Implementing this behavior and adjusting the scroll bar will require a custom solution, which is beyond the scope of out standard support services.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or