Ask for help

0 Answers 33 Views
Grid
zhang
Top achievements
Rank 1
zhang asked on 20 Nov 2023, 01:37 PM

When I use display to switch multiple Kendogrids or open kendoGrid with the layer pop-up, I have problems with the height of kendoGrid and the page at the bottom, and I can't find a solution

Nikolay
Telerik team
commented on 23 Nov 2023, 10:18 AM

Hello Zhang,

I assume the problem here is that the Grid is initialized inside another element. As a result,  the Grid does not render its Pager correctly. Generally, if you initialize a Grid inside a hidden container, the Grid may not adjust its layout correctly.

You can find more information about this in the following article: https://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance/hidden-containers

I suggest calling the resize() method after the Grid widget becomes visible.

$("#grid").data("kendoGrid").resize();

Let me know if this resolves the situation. If not please share the Grid declaration or, if possible, isolate the problem in a Dojo demo so I can investigate.

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
Grid
Asked by
zhang
Top achievements
Rank 1
Share this question
or