I'm using WebDataGrid, V16.2 and would like to disable the scrollbar, both vertical and horizontal.
But I can't find where to set the status. Can anyone help?
Thanks in advance!
Hi everlight,
Thank you for waiting.
I'm afraid WebDataGrid doesn't have any properties about scrollbar.If you want to disable vertical and horizontal scrollbars, please use CSS.
Here is a CSS sample. "WebDataGrid1" is the ClientID of WebDataGrid.Please change it if needed. ``` /* Hide vertical scrollbar */ #WebDataGrid1 col[sub="vScrWidth"] { display: none; } #WebDataGrid1 div[mkr="vScrBar"] { display: none; }
/* Hide horizontal scrollbar */ #WebDataGrid1 tr[mkr="hScrHeight"] { display: none; }```
In addition, if you want to prevent mouse wheel scrolling on WebDataGrid, you can use the following CSS.Since WebDataGrid is overlaid with a pseudo element, scrolling is disabled.
``` #WebDataGrid1 { position: relative; } #WebDataGrid1::after { content: ''; display: block; position: absolute; top: 37px; /* Header height */ right: 0; bottom: 0; left: 0; background-color: gray; /* optional */ opacity: .3; /* optional */ }```
I hope this will help.
Best regards,Tatsushi KiryuDeveloper support EngineerInfragistics
Hi Ever Light,
Thank you for contacting Infragistics Developer Support.
I am currently working on this and will update once I have more information.