Radsplitter height

Thread is closed for posting
2 posts, 0 answers
  1. Anil
    Anil avatar
    26 posts
    Member since:
    Jun 2008

    Posted 01 Jun 2009 Link to this post

    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

     

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 03 Jun 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top