<telerik:RadSplitter id="RadSplitter1" runat="server" width="100%" height="800" Orientation="Vertical" >
<telerik:RadPane id="LeftPanel" runat="server"> </telerik:RadPane>
<telerik:RadSplitBar id="RadSplitBar1" runat="server" collapsemode="Both"></telerik:RadSplitBar>
<telerik:RadPane id="RightPanel" runat="server"></telerik:RadPane>
</telerik:RadSplitter>
function renderReport(url1,url2) {
var splitter = $find("<%= RadSplitter1.ClientID %>");
var vLeftPanel = splitter.getPaneById("LeftPanel");
var vRightPanel = splitter.getPaneById("RightPanel");
vLeftPanel.set_contentUrl(url1);
vRightPanel.set_contentUrl(url2);
}
when I debug, I see that the error is thrown at Rad build-in function, pps_tree_updateLabel: function()
at the below line:
this.ppstreeLabelTextElement.style.width = this.ppstreeLabelTextElement.parentElement.offsetWidth - this.ppstreeDropDownImage.currentStyle.width.replace("px", "");
Below is the complete function:
pps_tree_updateLabel: function()
{
var s = "";
var collection = this.ppstreeTreeElement.getElementsByTagName("input");
for (var i=0; i < collection.length; ++i)
{
var el = collection[i];
if ((el.checked == true) && (el.className != "pps-tree-selector"))
{
var eparent = el.parentElement;
s = s + eparent.innerText + this.ppstreeSeparatorCharacter + " ";
}
}
this.ppstreeLabelTextElement.style.width = 0;
this.ppstreeLabelTextElement.innerText = s.substring(0,s.length-2);
this.ppstreeLabelTextElement.title = this.ppstreeLabelTextElement.innerText;
if (this.ppstreeLabelTextElement.scrollWidth > this.ppstreeLabelTextElement.parentElement.offsetWidth - this.ppstreeDropDownImage.currentStyle.width.replace("px", ""))
{
this.ppstreeLabelTextElement.style.width = this.ppstreeLabelTextElement.parentElement.offsetWidth - this.ppstreeDropDownImage.currentStyle.width.replace("px", "");
}
else
{
this.ppstreeLabelTextElement.style.width = this.ppstreeLabelTextElement.scrollWidth;
}
},
The problem is only when one of the pane is collapsed.
Can someone please help me to get rid of this errro?