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

RadDatePicker showing two date formats when not focused

13 Answers 241 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jerry T.
Top achievements
Rank 1
Jerry T. asked on 23 Feb 2012, 06:00 PM
Ever since we updated to 2012 Q1 version, I'm seeing RadDatePicker controls display two date values in the input box.

One is the properly-formatted DisplayDateFormat value and the other is the raw data in full date/time format.

I noticed here that a default behaviour changed from FALSE to TRUE for EnableSingleInputRendering.  There appears to be a bug with this control with that value set to TRUE:
http://demos.telerik.com/aspnet-ajax/input/examples/singleinputrendering/firstlook/defaultcs.aspx

Attached is a screenshot where you can see the full date/time is overwriting the formatted date (in other controls that are wider, you can see both values next to each other)

13 Answers, 1 is accepted

Sort by
0
DonKitchen
Top achievements
Rank 1
answered on 27 Feb 2012, 09:31 PM
I think I *may* be seeing something similar.

In the Q1 2012 build my date picker fields are showing a different format at first and then correcting themselves before the page is fully done rendering.

I've attached a screen capture video showing the behavior of my formview when I go into edit mode.

Actually, here's a link to the video since the forum will only allow me to attach an image to this post.

http://dl.dropbox.com/u/110813/2-27-2012%203-28-34%20PM.avi
0
Milena
Telerik team
answered on 28 Feb 2012, 05:49 PM
Hi,

This issue is forwarded to our developers and they are investigating it. They will try to fix the problem for the next stable version - SP1, which will be released in the middle of April.

Kind regards,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Kuna
Top achievements
Rank 1
answered on 12 Mar 2012, 08:01 AM
I have the same problem, both with RadDatePicker.DateInput and with standalone RadNumericTextBox, when they are in any other state than Enabled (I change the state by javascript). Obviously, there is the problem with different styles, because there was need to repair the problem e.g. with horizontal align of the values in the input field, which did not work properly in the previous version Q2 2011 SP1. This is repaired in the version Q1 2012, but the problem with two date formats occurs.
I would recommend not to wait till the next stable version, but to provide a hot fix for this, because this is a big bug, when it is so much "visible" and the end user sees it immediately and can not read the result value...
0
Milena
Telerik team
answered on 13 Mar 2012, 10:46 AM
Hello,

Our developers are working on this issue and there are already some fixes related to it in our latest internal build. They are still searching for a solution about showing the date initially in a wrong format(with full time), however the correct format should be applied when the page is fully loaded. Could you upgrade to the latest available hotfix and let me know if you have any other troubles?

Regards,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ludek
Top achievements
Rank 1
answered on 15 Mar 2012, 10:15 AM
Hi Milena,
I used the latest internal build and some of the problems are repaired (initial text align, two date formats in the enabled/disabled standalone RadNumericTextBox), but I am still experiencing the following problem with readonly DateInput of the RadDatePicker control:
<telerik:RadDatePicker ID="RadDatePickerDay1" runat="server" Width="220px" DatePopupButton-ToolTip="Kalender" Skin="WebBlue">
    <Calendar Skin="WebBlue" runat="server">
        <FastNavigationSettings CancelButtonCaption="Abbrechen" TodayButtonCaption="Heute" />
    </Calendar>
    <DateInput ID="DateInputDay1" runat="server" ReadOnly="true" Font-Size="11px" CssClass="text center" Skin="">
    </DateInput>
</telerik:RadDatePicker>

I programatically select the date and then I do this via javascript:
el = datepicker.get_textBox();
el.get_styles().FocusedStyle[0] +=
'background-color: yellow; color:red;';
el.get_styles().EnabledStyle[0] += 'background-color: yellow; color:red;';
el.focus();

In the DateInput there are still 2 date formats written one over the second. The states of the DateInput are in the attached images "before" and "after". The red text behind is "2012-04-22-00-00-00".

With kind regards
Radim Kuna
0
Milena
Telerik team
answered on 19 Mar 2012, 05:26 PM
Hello,

Indeed, I have succeeded in reproducing the issue and forwarded it to our developers in order to investigate it. I will let you know when more information on this matter is available.

All the best,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Kuna
Top achievements
Rank 1
answered on 29 Mar 2012, 07:42 AM
Hi,
I downloaded and used your last internal build and the problem with disabled input is solved, so I can see there only 1 value. But I don't know why the inline style of input element has the line-height: 10000px - it makes my page very high and scrollbar appears without a reason...

Thanks for your help.
Kuna
0
Milena
Telerik team
answered on 29 Mar 2012, 04:08 PM
Hello,

We were alerted for a such issue in IE9 when Enabled property is set to false and there is already a fix for it, which will be part of our next internal build. You can download it or wait for next stable version SP1, which will be available in the middle of April.

Meantime, you can use the following workaround:

._Telerik_IE9 .riSingle
{
        overflow:hidden;
}


Kind regards,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
DonKitchen
Top achievements
Rank 1
answered on 16 Apr 2012, 04:46 PM
I am still having my above mentioned issue after the Q1 2012 SP1 build.  Can you offer up any advice or if this was not corrected in my situation?  Again, I have a video linked in my first post of this thread showing my problem with the formatting of the date picker not showing properly at first
0
Milena
Telerik team
answered on 19 Apr 2012, 01:59 PM
Hello,

In our next official release Q2 2012 will be included a fix for this issue, meantime you can set EnableSingleInputRendering property of RadInput to false in order to prevent the unwanted behavior.

All the best,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
CL
Top achievements
Rank 1
answered on 20 Apr 2012, 07:44 PM
Hi Milena,

I had the same issue with the datepicker or timepicker showing two date/time formats. While playing with all possible fixes, I realized that this 'bug' appears when in my css style I have a value for the color of the text and with '!important'

This is my style
html body form input.textbox_telerikBRTest ,
html body form .RadInput input.textbox_telerikBRTest
{
    /*color: #333333 !important;
    padding:1px 2px 1px 2px !important;
    border: 1px solid #bbb !important;
    padding-left:8px !important;   */
    font:normal 13px Arial !important;
    padding-left:8px !important;
    padding:1px 2px 1px 2px !important;
    border: 1px solid #bbb !important;
}

I also attached a sample of my findings. I hope this information help others and to correct the issue.
0
PPSDevs
Top achievements
Rank 1
answered on 29 May 2012, 10:10 PM
This issue has not been resolved in 2012 Q1 SP1. I just downloaded it last week and the date fields still show two formats.

When is the Q2 release due to come out?

Please let me know ASAP.

Manjeet
0
Milena
Telerik team
answered on 30 May 2012, 02:47 PM
Hello,

Q2 2012 will be released in the middle of next week(06.06).

All the best,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Calendar
Asked by
Jerry T.
Top achievements
Rank 1
Answers by
DonKitchen
Top achievements
Rank 1
Milena
Telerik team
Kuna
Top achievements
Rank 1
Ludek
Top achievements
Rank 1
CL
Top achievements
Rank 1
PPSDevs
Top achievements
Rank 1
Share this question
or