Reset the scrollbar when filter didn't find the items in Grid

1 Answer 61 Views
Filter  Grid
Andrei
Top achievements
Rank 1
Iron
Andrei asked on 30 Jul 2024, 08:03 AM
If the filter is applied, it has found the elements and the number of elements does not exceed the visible area - the scrollbar disappears, it's ok. But if the filter is applied and it hasn't found the elements - the scrollbar doesn't disappear. The expected behavior in this case is to reset the scrollbar, since there are no found items and the grid list is empty.
Are there any planned changes to this case?

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 01 Aug 2024, 06:50 AM

Hi Andrei,

Using the example in question as a reference, could you please try changing the "scrollable" property to the following:

      scrollable={dataResult.total != 0 ? "virtual" : "true"}

Setting the "scrollable" to "virtual" only if there are items in the data seems to resolve the behavior that you are describing.

 

Regards,
Konstantin Dikov
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

Tags
Filter  Grid
Asked by
Andrei
Top achievements
Rank 1
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or