Hi,
I'm newbie in RadGrid. I'm trying to implement the "Resizing grid with scrolling when data is less than scroll height" by following the RadControls document.
My version is Q2 2008.
The following taken from document :
<script type="text/javascript">
function GridCreated(sender, args)
{
var scrollArea = sender.GridDataDiv;
var dataHeight = sender.get_masterTableView().get_element().clientHeight;
if(dataHeight < 350)
{
scrollArea.style.height = dataHeight + 17 + "px";
}
}
However, it stopped at
scrollArea.style.height = dataHeight + 17 + "px";
with error" Object expected".
It seems scrollArea.style.height expects an object as input rather than a string.
Please advise,
Wilson
I'm newbie in RadGrid. I'm trying to implement the "Resizing grid with scrolling when data is less than scroll height" by following the RadControls document.
My version is Q2 2008.
The following taken from document :
<script type="text/javascript">
function GridCreated(sender, args)
{
var scrollArea = sender.GridDataDiv;
var dataHeight = sender.get_masterTableView().get_element().clientHeight;
if(dataHeight < 350)
{
scrollArea.style.height = dataHeight + 17 + "px";
}
}
However, it stopped at
scrollArea.style.height = dataHeight + 17 + "px";
with error" Object expected".
It seems scrollArea.style.height expects an object as input rather than a string.
Please advise,
Wilson