I am a newbie in JS development.I have a class defined in html file.
<div class="content">
<div id="splitter">
<div>Pane A</div>
<div>Pane B</div>
</div>
</div>
I want to use kendo splitter to split the screen in 20:80 ratio.Here is the code of JS file:
var currViewCtx = viewEvt.view.viewCtx;
var contentView = currViewCtx.getViewContent().find(".content");
var Widget = CrudUtils.createFilter();
if (FilterWidget.Id != null) {
$(contentView).find("#splitter").kendoSplitter({/////Line x
orientation: "horizontal",
panes: [{ resizable: false, size: "20%", collapsible: false },
{ resizable: false, collapsible: false }]
});
}
The code doesn't run from Line x .Can anyone help me out with the code?
Not sure why you have those
contentView
stuff. You can just go straight to$("#splitter")
. Here is an example of splitting the screen 20:80. You can run this in the Kendo Dojo.