I am using the RadSplitter inside another RadSplitter and the page is infested with Ajax updating stuff... so I thought the best way to do this "easy" task would be to include a javascript function.
function openMessage(sender,args)
{
var splitter = <%=RadSplitterContent.ClientID %>;
if(!splitter) return;
var pane = splitter.getPaneById('RadPane3');
if (!pane) return;
pane.collapse();
}
The function is called by an onClientClick event of a button, no problem there.
This is the code I got from reading the forum here, as well as the example in the Live Demo section. I change the first line to include document.getElementById, because this way of working set splitter to null.
Anyway, when I finally get something that isn't null, the splitter.getPaneById method fails. Firebug says "splitter.getPaneById is not a function".
Anyone got this problem before?
function openMessage(sender,args)
{
var splitter = <%=RadSplitterContent.ClientID %>;
if(!splitter) return;
var pane = splitter.getPaneById('RadPane3');
if (!pane) return;
pane.collapse();
}
The function is called by an onClientClick event of a button, no problem there.
This is the code I got from reading the forum here, as well as the example in the Live Demo section. I change the first line to include document.getElementById, because this way of working set splitter to null.
Anyway, when I finally get something that isn't null, the splitter.getPaneById method fails. Firebug says "splitter.getPaneById is not a function".
Anyone got this problem before?