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

Radgrid.height=unit.percentage(...) not working.

1 Answer 140 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 13 Nov 2011, 08:07 AM
Hi
I'm creating the radgrid in usercontrol,using that user control in one aspx page. When user redirects to aspx page there I'm showing radgrid.
In aspx page I'm getting the radgrid of usercontrol and try to set the height from code behind like as
Grid.Height=unit.percentage(95); like that but its not working.
How can I set the height of grid aspx page not in usercontrl.
Please help me.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Nov 2011, 06:04 AM
Hello Ram,

You can set the Height with Unit.Pixel().

RadGrid1.Height=Unit.Pixel(500);

Thanks,
Princy.
Tags
Grid
Asked by
Ram
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or