Setting Radsplitter Height to its content

neo

I want to make radsplitter get height from its content dynamically, not static height. I mean I don't want splitter to have scroll bars, instead using explorer natural scroll bars. Splitter has 2 panes; the left pane is a radpane menu which is higher than entire window and the right pane is a dynamic content with arbitrary heights. In this case I get 2 annoying scroll bars or my contents are hidden. I don't want either case. I want simply one scroll bar on explorer and to achieve this splitter have to get height from content dynamically.

Svetlina Anati

For the time being, there is no simple way (e.g. set a property) to achieve the desired functionality. The RadSplitter control offers a rich clientside API, however, that you can use to achieve the desired result.

I would recommend that you use the OnClientLoaded handler of the RadSplitter object to calculate the Height of the content of the RadPane and set that value as Height of the RadPane. You can find additional information along with a sample demo in the following location:

neo

Thanks for your reply. It works great. But now I have another problem which as follows:
In some forms the content height in Radpane2 or ContentPane will be changed in javascript and no ClientLoaded event will be raised. One example of this is when I use Ajax Controls Toolkit CollapsiblePanelExtender :

Svetlina Anati

In this case you should hook up to the particular event. For example, if you replace the collapsible panel e.g with a RadToolTip, you can use its OnClientShow event. This being said, it is up to you and your custom logic what event to capture (e.g onmouseover with some timeout and check for visibility might work in your case).

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.