You can remove the horizontal scroll bar from a jqGrid by setting the shrinkToFit
option to true
. This option adjusts the column widths to fit the grid width, so that there's no need for a horizontal scroll bar.
Here's an example:
javascript$("#grid").jqGrid({
// other jqGrid options
shrinkToFit: true,
});
In this example, we're setting the shrinkToFit
option to true
. This will adjust the column widths to fit the grid width, so that the horizontal scroll bar is not needed.
If you still want to keep the horizontal scroll bar but remove its appearance, you can use CSS to hide it. Here's an example:
css.ui-jqgrid .ui-jqgrid-bdiv {
overflow-x: hidden !important;
}
In this example, we're using CSS to hide the horizontal scroll bar. The overflow-x: hidden
property hides the horizontal scroll bar, and the !important
keyword is used to override any existing styles that might be setting the scroll bar's appearance.
Comments
Post a Comment