Hello I have a grid inside a horizontal Pane inside a splitter pane. I need the splitter pane to increase its height automatically according the size of the grid and not trigger scrolling inside the splitter.
Thank you
.HtmlAttributes(new { style = "height:100%;border:1" }) but it is not working the way it supposed to work only.HtmlAttributes(new { style = "height:850px;border:1" }) is working not the % Can you please help me find out a better way to automatically resize the splitter panels Thanks Shaik
Earlier today I ran into a problem with the application I'm working on and found the same behavior in the demo page for the splitter.
In a splitter with 2 panes, move the splitterbar between the two panes. Add a third pane to the right hand side and move the splitterbar between the second and third pane. Close the third pane and move the splitterbar between the first two panes again.
If you add a pane to the right hand side again, it will have a width of 0. The demopage will show a splitterbar on the right side, outside of the splitter-div, which allows you to adjust the width and make the thrid pane visible.
In my application, the splitter fills up the screen to the edge on the right side, so in my case, the splitbar will be invisible as well.
How can I fix this?
@(Html.Kendo().Splitter()
.Name("vertical")
.Orientation(SplitterOrientation.Vertical)
.Panes(verticalPanes =>
{
verticalPanes.Add()
.Size("100px")
.HtmlAttributes(new { id = "top-pane" })
.Collapsible(false)
.Content(
@Html.RenderPartial("HeaderPartialView");
);
@( Html.Kendo().Window()
.Name("popupSplitter")
.Title("Popup Splitter")
.Draggable(true)
.Modal(true)
.Content(
@<
text
>
<
div
>
@RenderSplitter()
</
div
>
</
text
>
)
.Width(600)
.Height(450)
.Visible(false)
)
@helper RenderSplitter()
{
@Html.Kendo().Splitter()
.Name("MySplitter")
.Orientation(SplitterOrientation.Horizontal)
.HtmlAttributes(new { style = "width: 100%; height: 400px; " })
.Panes(hPanes =>
{
hPanes.Add()
.Size("200px")
.MinSize("100px")
.Content(
@<
text
>
@RenderTreeView()
</
text
>
)
.HtmlAttributes(new { id = "left_pane" });
hPanes.Add()
.Scrollable(true)
.HtmlAttributes(new { id = "right_pane" });
.Content(
@<
text
><
p
>test</
p
></
text
>
);
})
}
<button class=
"k-button"
id=
"btnAdd"
onclick=
"addSomething()"
><span class=
"k-icon k-add"
></span></button>
function
addSomething() {
var
window = $(
"#popupSplitter "
).data(
"kendoWindow"
);
window.center();
window.open();
}