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

Splitter bar problem

1 Answer 73 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
krunal
Top achievements
Rank 1
krunal asked on 12 Jun 2008, 02:19 PM
Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 13 Jun 2008, 02:54 PM
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           
    splitter.set_height(contentHeight);           
    pane.set_height(contentHeight);      
}   

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,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Splitter
Asked by
krunal
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or