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

Radsplitter height

1 Answer 97 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Anil
Top achievements
Rank 1
Anil asked on 01 Jun 2009, 08:16 PM
Good evening. I am using Radsplitter in the master page. And the content pages have different heights. I want the Radsplitter height to be 100% of the content page height. I tried using 
MasterPage myMaster = (MasterPage)this.Master;

(

RadSplitter)(myMaster.FindControl("RadSplitterBuilding"))).Height = Unit.Percentage(100);
But it does not work. Please let me know a way to deteremine the Page height on client-side before it is rendered to the browser, and set the radsplitter height to the same.
Thanks
Anil

 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 03 Jun 2009, 11:44 AM
Hi Anil,

As far as I understand from your explanations, you have a RadSplitter on your MasterPage and you want it to occupy 100% of the entire page. If so, you should set Width and Height 100% on the markup declaration and also include the following style on your MasterPage:

<style type="text/css">  
html, body, form  
{  
  height: 100%;  
  margin: 0;  
  padding: 0;  
}  
 
</style> 

Please, note, that in case you have nested the splitter in other elements, e.g DIV, you should additionally set all the parent elements heights explicitly.
Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Anil
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or