Hi,
Dynamically adding docks and I want when the user clicks the command button to show or hide a div within the widget. I can do this with a javascript function on the ascx page, but once I add more than one the function becomes ambiguous with each copy having the same javascript function.
The ascx file will have a function like:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script>
function temper(dock, args) {
$('#<%= temperDiv.ClientID%>').hide("slow");
}
</script>
</telerik:RadCodeBlock>
<div id="temperDiv" runat="server" >
Dynamically adding docks and I want when the user clicks the command button to show or hide a div within the widget. I can do this with a javascript function on the ascx page, but once I add more than one the function becomes ambiguous with each copy having the same javascript function.
The ascx file will have a function like:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script>
function temper(dock, args) {
$('#<%= temperDiv.ClientID%>').hide("slow");
}
</script>
</telerik:RadCodeBlock>
<div id="temperDiv" runat="server" >