Splitter bar problem

2 posts, 0 answers
  1. krunal
    krunal avatar
    1 posts
    Member since:
    Aug 2007

    Posted 12 Jun 2008 Link to this post


    We are planning to purchase the telerik control. We have checked the spliter control in our application but when we use the splitter control in our application it disabling the window scroll bar that actully we want.

    Please let me know how would i do that...or send me the mail id so i will send you the exact problem in mail.
  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 13 Jun 2008 Link to this post

    Hi krunal,

    As far as I understand you want to use the browser's scrollbars instead of the ones of RadSplitter.
    If I am right I suggest to use the RadSplitter's OnClientLoaded handler to get the height of the content and set it for a height of the RadSplitter. In this manner the RadSplitter will not contain overflow and the overflow will be in the <body> element - as result you will see the browser's scrollbars.

    The javascript function should be like the following one (please, note that it slightly differs for horizontal and vertical orientation layout):

     function OnClientLoadedHandler(splitter, args)     
        var pane = splitter.getPaneById("<%= RadPane1.ClientID %>");           
        var parentContent = pane.getContentElement();           
        var contentHeight = parentContent.scrollHeight;           
    // Horizontal orientation           
    //  splitter.set_height(splitter.get_height() -   
    //pane.get_height+ contentHeight);           
    // Vertical orientation           

    In case this is not what you want, please provide more detailed information about the desired layout.

    It will be best if you open a new support ticket and send a simple project along with your explanation and some screenshots if possible.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top