RadCalendar in repeater

1 posts, 0 answers
  1. Mike Causi
    Mike Causi avatar
    37 posts
    Member since:
    Dec 2005

    Posted 07 Jan 2009 Link to this post

    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>

     






Back to Top