Two datepickers with ClientIDMode=Static fails

2 posts, 0 answers
  1. Morten
    Morten avatar
    267 posts
    Member since:
    Jul 2012

    Posted 27 May 2012 Link to this post

    I have a page with two raddatepickers. Both have ClientIDMode="Static".

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="datepicker.aspx.vb" Inherits="tests_datepicker" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <head runat="server">
            <title></title>
    </head>
    <body>
            <form id="form1" runat="server">
            <div>
                <telerik:RadScriptManager runat="server" ID="rcm"></telerik:RadScriptManager>
                <telerik:RadDatePicker runat="server" ID="RadDatePicker1" ClientIDMode="Static" />
                <telerik:RadDatePicker runat="server" ID="RadDatePicker2" ClientIDMode="Static" />
     
            </div>
            </form>
    </body>
    </html>

    Clicking the calendar icon next to RadDatePicker1 pops up the calendar aligned to RadDatePicker2 and if a date is selected RadDatePicker2 is filled in. The calendar never pops up when clicking the calendar icon next to 
    RadDatePicker2.

    I'm I doing something wrong?



  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 28 May 2012 Link to this post

    Hello Morten,

    I believe Telerik has suggested that you should not use ClientIDMode="Static" as it will break their controls.

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top