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

Two datepickers with ClientIDMode=Static fails

1 Answer 66 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 1
Iron
Veteran
Iron
Morten asked on 27 May 2012, 08:09 AM
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?



1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 28 May 2012, 01:17 PM
Hello Morten,

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

I hope that helps.
Tags
Calendar
Asked by
Morten
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Kevin
Top achievements
Rank 2
Share this question
or