Hi,
Here I have RadSplitter control in master page which I need to collapse on click of some check box. Both check box and Splitter in master page only. I have applied JS as below but it can not find splitter control (It returns null in $find()).
JS which is in RadBlock
<telerik:RadCodeBlock runat="server" ID="radCodeBlock">
<script type="text/javascript">
</telerik:RadSplitter>
Please help me to resolve this.
Thanks & Regards,
Kaushal Jani
Here I have RadSplitter control in master page which I need to collapse on click of some check box. Both check box and Splitter in master page only. I have applied JS as below but it can not find splitter control (It returns null in $find()).
JS which is in RadBlock
<telerik:RadCodeBlock runat="server" ID="radCodeBlock">
<script type="text/javascript">
function onCheckBoxClick(chk) {
debugger;
if (chkText == "Toggle ToolBar") {
var splitter = $find("<%= MainSplitter.ClientID %>");
var pane = splitter.getPaneById("TopPane");
var isCollapseSuccess = pane.collapse();
}
}
</script>
</telerik:RadCodeBlock>
HTML Code:
<telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%"
Orientation="Horizontal">
<telerik:RadPane ID="TopPane" runat="server" Height="100" Scrolling="none" >
<!-- Place the content of the pane here -->
</telerik:RadSplitter>
Please help me to resolve this.
Thanks & Regards,
Kaushal Jani