This is a migrated thread and some comments may be shown as answers.

[Solved] grid

1 Answer 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 03 Feb 2010, 04:40 AM
Hi,

I've a radgrid with scrolling enabled. I need to set the scroll height dynamically in he javascript in the onresize event.

how do i do this. I know scrolheight takes only pixels. I calculate my grid's height based on the formla:
(items.count * 24 ) + gridheaderheight.

Now the question is how can i access the scroll height in my javascript and set it to scroll height of radgrid in ascx. Pls help me with code.

When I get the scroll height fitting my screen, I shouldn't get the IE scrollbar? how do i do this

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 05 Feb 2010, 07:19 AM
Hi Ayesha,

Try the following client-side operation:

$find('RadGrid1').GridDataDiv.style.height = //your custom value goes here;

I hope this helps.

Greetings,
Tsvetoslav
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or