Just wanted to share a solution to a short problem I encountered to one of my recent projects here.
The situation is the next: In a kendo UI based web project you want to use the splitter functionality with the next basic configuration:
HTML
<div id="mySplitter">
<div id="primaryItemPane">
</div>
<div id="secundaryItemPane">
</div>
</div>
JS
$("#mySplitter").kendoSplitter({
orientation: "vertical",
panes: [
{ collapsible: false, size: "50%", contentUrl: "/urlToPane" },
{ collapsible: false, size: "50%", contentUrl: "/urlToPane" },
]
});
Now lets say you want to change "toggle" the orientation and be able to re-use that toggle as much as you want.
The main problem is that Kendo UI doesn't provide built in functions to switch the orientation and maintain the underlying existing panes.
I will provide the answer below myself, but other working solutions or more efficient ways are welcome.