Hi,
I am trying to access a JavaScript function in a repeater, but I get a runtime error of "The name 'RadDatePicker1' does not exist in the current context". This normally works when the raddatepicker is outside a repeater. Are there any links to samples? Thanks.
Example:
I am trying to access a JavaScript function in a repeater, but I get a runtime error of "The name 'RadDatePicker1' does not exist in the current context". This normally works when the raddatepicker is outside a repeater. Are there any links to samples? Thanks.
Example:
<
rada:RadScriptBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function ToggleFirstPopup()
{
$find(
"<%= RadDatePicker1.ClientID %>").showPopup();
}
</
script>
</
rada:RadScriptBlock>
<asp:DataGrid ID="dgDates" runat="server" >
<Columns>
<ItemTemplate>
<rada:raddatepicker id="RadDatePicker1" mindate="2006-2-1" maxdate="2099-1-1"
runat="server" skin="WebBlue" width="75">
<DatePopupButton Visible="False"></DatePopupButton>
<DateInput onclick="ToggleFirstPopup()" >
</DateInput>
</rada:raddatepicker>
</ItemTemplate>
</Columns>
</asp:DataGrid>