Hi All,
In my application user has to enter the Date of Birth of the Applicant in Ultra Date Time Picker. In record updating situation control all are in read only mode. If the user wants to edit one applicant details, then he has to click edit button. After button click all the controls are comes to writable mode and user can change all the values.
When I place the cursor in the DOB field and click edit button, control comes to writable. Then I change the date from drop down and click save button. Records have been updated successfully in DB. But the date time editor value displaying the value like this 20/10/__
If I change the cursor position from date time editor to some other control, then the value comes to normal format. Here in date time picker I set the Format String as "MM/dd/yyyy".
Here same sample screen shots
Now control is in Read only mode. But the cursor is placed inside the control. And User clicking the Edit Button.
Now control is in writable mode. After that user can change the date. And clicking the Save Button.
At last date value Displaying like above image. But the Cursor still in same control. Here the 2010 year value displaying in MM/dd/ area.
Please anyone help me to resolve this issue. And Thanks in advance.
I can reproduce the same issue. Here is how we define the control:
private Infragistics.Win.UltraWinEditors.UltraDateTimeEditor udtResolvedDate;
this.udtResolvedDate.DataBindings.Add(new System.Windows.Forms.Binding("DateTime", this.bgsTicket, "ClosedDate", true)); this.udtResolvedDate.Enabled = false; this.udtResolvedDate.Location = new System.Drawing.Point(410, 124); this.udtResolvedDate.MaskInput = "{time} {date}"; this.udtResolvedDate.Name = "udtResolvedDate"; this.udtResolvedDate.NullText = "<Select One>"; this.udtResolvedDate.ReadOnly = true; this.udtResolvedDate.Size = new System.Drawing.Size(154, 21); this.udtResolvedDate.TabIndex = 12; this.udtResolvedDate.Value = null;
When the regional settings of the computer are English, this works fine. However, when we use German or French regional settings, then we see the same issue --> the underline in the date/time display. We have many global users, would like to know if there is a fix.
We are using version 10.2 of the controls
Hi,
I have some questions about what's happening here.
What version of the controls are you using?
How are you enabling/disabling editing in the control? I assume you are using the ReadOnly property?
The steps you listed here do not include any editing of the controls value. Is that right? You are not changing the value or typing into the control? This happens when you simply have a caret in the control and change ReadOnly from false to true and back to false?
At what point are you setting the ReadOnly property? Does this occur before or after you save the data?
What exactly is the data source you are using here and what exactly happens when you save?
There's a lot going on here, so if you could post a small sample project that demonstrates this behavior, I'd be happy to take a look at it for you. To attach a file to your post, just go to the Options tab.