This is a migrated thread and some comments may be shown as answers.

RadCalendar in repeater

0 Answers 46 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Mike Causi
Top achievements
Rank 1
Mike Causi asked on 07 Jan 2009, 08:42 PM
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:

<

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>

 






No answers yet. Maybe you can help?

Tags
Calendar
Asked by
Mike Causi
Top achievements
Rank 1
Share this question
or