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

Selecting a radio button clears date time picker

5 Answers 24 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 22 Jan 2018, 04:29 PM

I have a page with various controls. When I click a radio button, it clears ONLY the datetimepicker fields.  I tried both ASP.Net and Telerik radio buttons and both have the same effect. 

radio button:

<asp:RadioButton runat="server" Text ="<span style='font-size: 14px'>Repair and use</span>" TabIndex="115" ID="rbRepair" AutoPostBack="true" GroupName="rbGeneral" />

 

The radio button code behind:

txtRequestOther.Visible = False

 

datetimepicker:

<telerik:RadDateTimePicker ID="dtRequestDate" runat="server" Width="190px" Culture="en-US" TabIndex="40" Enabled="False">
<TimeView ID="TimeView2" runat="server" CellSpacing="-1"></TimeView>
<TimePopupButton CssClass="rcTimePopup rcDisabled" HoverImageUrl="" ImageUrl="" />
<Calendar ID="Calendar2" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" EnableWeekends="True"></Calendar>
<DateInput ID="DateInput2" runat="server" DisplayDateFormat="MM-dd-yyyy HH:mm tt" DateFormat="MM-dd-yyyy HH:mm tt" LabelWidth="40%" DisplayText="Select Request Date" EmptyMessage="Select Request Date">
<EmptyMessageStyle Resize="None" />
<ReadOnlyStyle Resize="None" />
<FocusedStyle Resize="None" />
<DisabledStyle Resize="None" />
<InvalidStyle Resize="None" />
<HoveredStyle Resize="None" />
<EnabledStyle Resize="None" />
</DateInput>
<DatePopupButton CssClass="rcCalPopup rcDisabled" HoverImageUrl="" ImageUrl="" TabIndex="30" />
</telerik:RadDateTimePicker>

5 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 22 Jan 2018, 04:32 PM

The version we are using:

2016.3.1027 Oct 27, 2016

0
Mark
Top achievements
Rank 1
answered on 24 Jan 2018, 12:27 PM
Anyone?
0
Mark
Top achievements
Rank 1
answered on 25 Jan 2018, 02:45 PM
This happens on post back
0
Mark
Top achievements
Rank 1
answered on 30 Jan 2018, 02:01 PM
So we have a license for this product and no support?  It has been over a week since I posted this.  HELP!  Please!
0
Mark
Top achievements
Rank 1
answered on 27 Feb 2018, 02:31 PM
So the reason was really simple.  I had the DisplayText and EmptyMessage both set.  I removed the DisplayText and it works fine.  Thanks for the great support Telerik! NOT
Tags
DateTimePicker
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Share this question
or