This question is locked. New answers and comments are not allowed.
Hi all, is there way to set pane size collapsed when you create splitter?
Thanks for all, and sorry for my bad English
Example: vPanes.Add() .Size("20%") .Collapsible(true) .Collapsed(true or false) // <-- some property or another way Thanks for all, and sorry for my bad English
6 Answers, 1 is accepted
0
Aalano
Top achievements
Rank 1
answered on 09 Nov 2011, 03:42 AM
I'd be interested in a response to this as well.
There is a Collapsed(true) method, but when you try that the initial display gets all buggered
vPanes.Add()
.Collapsible(false)
.Collapsed(false)
.Content(() =>
{%>
<h2>Hello</h2>
<%});
vPanes.Add()
.Collapsible(true)
.Collapsed(true)
.Content(() =>
{%>
<h2>GoodBye</h2>
<%});
There is a Collapsed(true) method, but when you try that the initial display gets all buggered
vPanes.Add()
.Collapsible(false)
.Collapsed(false)
.Content(() =>
{%>
<h2>Hello</h2>
<%});
vPanes.Add()
.Collapsible(true)
.Collapsed(true)
.Content(() =>
{%>
<h2>GoodBye</h2>
<%});
0
Hello Aalano,
I can't reproduce the described issue on my side by using your code snippet. Can you provide the complete Splitter declaration, which causes the problem shown on your screenshot?
Kind regards,
Dimo
the Telerik team
I can't reproduce the described issue on my side by using your code snippet. Can you provide the complete Splitter declaration, which causes the problem shown on your screenshot?
Kind regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
0
Hi Aalano,
Thanks for the sent files, but I still cannot reproduce the problem. Everything works as expected, no matter whether I register telerik.draganddrop.js or not. I also tested in RTL mode, since you seem to be using it (judging by the registered RTL CSS file). Probably some styles which trigger the issue are missing, so I will appreciate if you provide a complete runnable project.
All the best,
Dimo
the Telerik team
Thanks for the sent files, but I still cannot reproduce the problem. Everything works as expected, no matter whether I register telerik.draganddrop.js or not. I also tested in RTL mode, since you seem to be using it (judging by the registered RTL CSS file). Probably some styles which trigger the issue are missing, so I will appreciate if you provide a complete runnable project.
All the best,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Aalano
Top achievements
Rank 1
answered on 11 Nov 2011, 10:05 PM
Hi Dimo, here's a full test project. I've also attached a screen shot
0
Hi Aalano,
Thanks, now I reproduced the problem. It is caused by the fact that the Splitter is rendered initially in a container with a display:none style (the inactive tab). In such cases Javascript size calculations do not work and the Splitter cannot adjust its layout.
The solution is to manually repaint the Splitter once it becomes visible:
All the best,
Dimo
the Telerik team
Thanks, now I reproduced the problem. It is caused by the fact that the Splitter is rendered initially in a container with a display:none style (the inactive tab). In such cases Javascript size calculations do not work and the Splitter cannot adjust its layout.
The solution is to manually repaint the Splitter once it becomes visible:
Html.Telerik() .TabStrip() .ClientEvents(ev => ev.OnSelect("repaintSplitter"))function repaintSplitter(e) { window.setTimeout(function () { var splitter = $("#Splitter").data("tSplitter"); if (splitter) { $("#Splitter").data("tSplitter").resize(); } }, 100);}All the best,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
