I have a Kendo Grid inside a Kendo Window. How can I enable its horizontal scrolling using wrappers?
I've tried anything, but none of them worked. The last thing I tried was surrounding the Grid with a width-limited div
.
I have a Kendo Grid inside a Kendo Window. How can I enable its horizontal scrolling using wrappers?
I've tried anything, but none of them worked. The last thing I tried was surrounding the Grid with a width-limited div
.
Have you tried using frozen column, I prefer use this feature if I have a lot of columns to be displayed.
Apply Scrollable() and give Width for each columns and then if the total width exceeds the width of the grid the horizontal scrollbar will appear.
Reference
Another solution here could be using 'table-responsive' from bootstrap. For example:
<div class="table-responsive">
<div id="grid"></div>
</div>
and in the declaration of the kendogrid something like this:
$("#grid").kendoGrid({
dataSource: dataAjax.Rotation,
scrollable: false,
});
Simple Solution to get the horizontal scrolling for a Kendo Grid
If you want to get horizontal scrolling on the whole grid not on specific columns then you can try this.
Use width: 'auto'
It will show horizontal scrolling if grid's size is more than the container.
I had the same issue with Angular 12. Adding [scrollable]="true"
to the kendo-grid solved my issue.