Initially AllowScroll=False in RadGrid
I have wrote code as below in javascript
var grid = $find("<%= RadGrid3.ClientID %>");
then
grid.ClientSettings.Scrolling.AllowScroll = true;
grid.GridDataDiv.style.height = "150px"
but GridDataDiv returns null in this case
but when AllowScroll=True in RadGrid
then
grid.GridDataDiv.style.height = "150px" this line of code works.
Why
grid.ClientSettings.Scrolling.AllowScroll = true;
is not supporting..
i want to set AllowScroll using javascript becoz if records are less then no need of scrolling.