I am doing the same, but in a different manner.
I am using the radsplitter expand/collapse.
The problem is in one Radpane the radgrid is fixed & paged so when we collpase the bottom RadPane there is a void.
I want to change the attributes of the radGrid to show more rows to fill in the void as well as return it back when the splitter is expanded halfway up the page.
I'm using the collapse/expand event of the radpane to trigger the function that will change the events.
Right now the only thing I get is [object]. if I add tagname to it is says "Div"
This is while using <%=control.clientid=> which I will include here.
The example above is okay if the sender is what you are looking for, but I'm looking for a different control where we would normally use getelementid().
Thanks
This is the test code for me to bring back the id of the control.
<
script language="javascript" type="text/javascript">
function RadPaneCollapsed() {
var dnetGrid;dnetGrid = document.getElementById('<%=grdcontrol.ClientID%>');
if (dnetGrid != null) {
alert(dnetGrid.tagName);
}
else {
alert("No ID");
}
}
</script>