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

[Solved] Dynamicaly display grid height

1 Answer 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
prayag ganoje
Top achievements
Rank 1
prayag ganoje asked on 16 Mar 2010, 12:20 PM
Hello,

I am using RadGrid and also enable the scollbar. Though there is only one row, Grid size does not change and shows a  lot of blank space below that row. How can I define the height of the Grid according to the no of rows in it.

I am suing this code behind for autoscroll enable.
gridBillToSearchResult.Width = Unit.Percentage(98)  
gridBillToSearchResult.ClientSettings.Scrolling.UseStaticHeaders = True 
gridBillToSearchResult.ClientSettings.Scrolling.AllowScroll = True 
 

-Prayag

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 16 Mar 2010, 12:37 PM
Hi Prayag,

You can use ScrollHeight property, which determines the height of the control's scrollable area when scrolling is enabled.

   RadGridInstance.ClientSettings.Scrolling.ScrollHeight

For more information, please refer to the following help article:
Height vs. ScrollHeight

Regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or