Need to re-size the RadSplitter control on my WebUserControl to the total size of the displayed (not collapsed) panes.
需要将WebUserControl上的RadSplitter控件重新调整为显示(未折叠)窗格的总大小。
For instance, I have 2 panes displayed within a RadSplitter. Each of these panes has a height of 250px. If one of these panes is collapsed, I only want the RadSplitter to take up space for 250px in height. If both panes are opened (none collapsed), I want the RadSplitter to take up space for 500px in height. This needs to be able to change in a live environment so that, if the user opens or closes a pane it makes the appropriate adjustments to the RadSplitter's height property.
例如,我在RadSplitter中显示了2个窗格。这些窗格中的每一个都具有250px的高度。如果其中一个窗格折叠,我只希望RadSplitter占用250px高的空间。如果两个窗格都打开(没有折叠),我希望RadSplitter占用500px高的空间。这需要能够在实时环境中进行更改,以便在用户打开或关闭窗格时对RadSplitter的height属性进行适当调整。
Any idea's...?
有任何想法吗...?
Thanks for your help!
谢谢你的帮助!
2 个解决方案
#1
0
What I would do is listed to the OnClientCollapsing event of the splitter and within it change the height of the main splitter div with javascript.
我要做的是列出分割器的OnClientCollapsing事件,并在其中用javascript更改主分割器div的高度。
#2
0
Check the below link: http://www.telerik.com/support/kb/aspnet-ajax/details/initially-resize-the-radsplitter-according-to-its-content
请查看以下链接:http://www.telerik.com/support/kb/aspnet-ajax/details/initially-resize-the-radsplitter-according-to-its-content
They have good solution for this problem.
他们有很好的解决方案。
#1
0
What I would do is listed to the OnClientCollapsing event of the splitter and within it change the height of the main splitter div with javascript.
我要做的是列出分割器的OnClientCollapsing事件,并在其中用javascript更改主分割器div的高度。
#2
0
Check the below link: http://www.telerik.com/support/kb/aspnet-ajax/details/initially-resize-the-radsplitter-according-to-its-content
请查看以下链接:http://www.telerik.com/support/kb/aspnet-ajax/details/initially-resize-the-radsplitter-according-to-its-content
They have good solution for this problem.
他们有很好的解决方案。