Two datepickers with ClientIDMode=Static fails

2 posts, 0 answers
  1. Morten
    Morten avatar
    352 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" "">
    <head runat="server">
            <form id="form1" runat="server">
                <telerik:RadScriptManager runat="server" ID="rcm"></telerik:RadScriptManager>
                <telerik:RadDatePicker runat="server" ID="RadDatePicker1" ClientIDMode="Static" />
                <telerik:RadDatePicker runat="server" ID="RadDatePicker2" ClientIDMode="Static" />

    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 

    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.
Back to Top