I have seen how you can relative widths for the splitter and panes using the ASP markup, e.g ...
<div id="splitterDIV" style="width: 100%; height: 200px;"> <ig:WebSplitter runat="server" ID="WebSplitter1" Height="100%"> <Panes> <ig:SplitterPane Size="50%"> </ig:SplitterPane> <ig:SplitterPane Size="50%"> </ig:SplitterPane> </Panes> </ig:WebSplitter></div>
However, in my application I am dynamically creating nested splitters in the CreateChildControls event. I want to set the width of the root splitter to 100%, and the pane size to say 60% and 40%. The splitter width and height properties, and the pane size property only seem to allow me to set fixed pixel sizes and the ResizeWithBrowser property seems to have no effect.ThanksNick
In my ASP application ig:websplitter Height in % not working. But when i put a Div outside and using CSS position propert i place the div to the top and bottom effectively and it works
<ig:websplitter id="wsJSMain" runat="server" Height="100%" Width="100%" DynamicResize="True" orientation="Vertical" ClientIDMode="Static"></ig:websplitter>
But there is an extra Scroll for the ig control ...and its class name is .igspl_Pane. So i put .igspl_Pane {height:auto!important} and the scroll disappears but when content overflows splitter bar container will not have scroll.
Hi Asha,
I did not understand your question, how splitter is related to drop-down and what #1-#3 cases are. It would be better if you give statements/codes which you try to use and explain what exactly does not work.
Hi Viktor
i want to change splitter's panes position.
i have drop down control with three status.
1 - bottom - for Horizontal orientation
2 - right - for Vartical orientation
3 - Top -For show panes(0) in second position (Bottom Side) and panes(1) in first position (Top Side) in Horizontal orientation.
1 & 2 option working perfectly but problem in 3 option please help.
Hi Viktor,
Stupid me,obvious when you point it out!
Thanks for the help.Nick
Hi Nick,
The Size property is Unit, but not int or double. The intellisense of VisualStudio should show that as a prompt for type of property.
If VB allows you to type-in int instead of Unit, then I would think about that feature as a bug (well, may be friendly automatic conversion).
You may set Size or any other Unit-type property at run time using Unit-value static "builders" like Percentage, Pixel, etc. You also may use Parse, though, in this case format of string should be legal. For example:
this.WebSplitter1.Panes[0].Size = Unit.Percentage(40);this.WebSplitter1.Panes[1].Size = Unit.Parse("60%");