Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
How to assume the full date by typing only a portion of it
posted

On a wingrid I have a few time and date fields I let the user edit.

The thing is that the user needs to type the entire date or the entire time to be assumed as a valid date.

So lets assume that I have this date format:

dd-MM-yyyy

The user needs to the day, month and year. But it would be much more productive to just type the day for instance, and assume current month and year. For example I would type:

5 ->TAB

and the editor would assume 05-05-2012.

if I typed both day and month:

5-6

It would assume the current year 05-06-2012

This seems a small tweak but its in fact a major pain having to input full dates when you are inserting hundreds of records a day manually.

Any tips on how to accomplish this with WinGrid?

Infragistics2.Win.UltraWinGrid.v11.1

version: 11.1.20111.2071

Parents
No Data
Reply
  • 71886
    Offline posted

    Hello,

    What you could do is to assign as an EditorComponent to the Grid column a 'UltraDateTimeEditor' control. Set the 'AutoFillDate' property of the date time editor to 'MonthAndYear', MaskInput to 'dd/mm/yyyy'.

    Please feel free to let me know if I misunderstood you or if you have any other questions.

Children