How to set kendo grid horizontal scrollbar Only?
18,841
Solution 1
To remove vertical scrollbar, you have to change the CSS on the Kendo UI Grid.
Replace #GridId with your grid id.
...
#GridID .k-grid-header
{
padding: 0 !important;
}
#GridID .k-grid-content
{
overflow-y: visible;
}
...
Solution 2
If you want to hide the vertical scroll bar on a kendo grid you can try this.
$("#grid .k-grid-content").css({
"overflow-y": "hidden"
});
Related videos on Youtube
Author by
aftab
Updated on May 30, 2022Comments
-
aftab about 2 years
I have kendo window its showing vertical and horizontal scrollbar both on grid, how i can just implement horizontal scrollbar and disable vertical , any suggetion.
code below
CONFIG.JS
sortable: true, pageable: { previousNext: false, pageSizes: false }, scrollable: true, filterable: true,
-
Lars Höppner over 9 yearspossible duplicate of How to make scrollbar auto enabled or disabled in a Kendo grid?
-
-
aftab over 9 yearsbut if i have other grids in application i want both vertical and horizontal it will break is'nt ?
-
Shaan over 9 yearsThe css above will ONLY hide the vertical-scroll for the grid with id="GridID" not the other grids.
-
aftab over 9 yearsi am using Angularjs cannot use jquery
-
Carlos Figueroa over 7 yearsAwesome. You're the best!
-
curiousBoy over 6 years@aftab: it doesnt make sense. isnt it already has Jquery Lite??