Hi there!
I am using the UltraWebGrid that hosts WebDateChooser. Actually I want that only the year ("yyyy") is displayed in the cell but on start up I see the whole date in there and only after activation of those cells the correct format is displayed. Is there a way to somehow "pre-activate" the cell so that the correct format will be displayed as the grid is shown or any other solution that would fix that issue?
Thank you!Dan
Hi Lyuba,
Sorry for the late response. Actually the date format works fine, thank you!
Kind regs,Dan
Hi Dan,
Let me know if you need any further assistance about this.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello Dan,
You can try setting the format using the CultureInfo class:
this.WebDateChooser1.Format = Infragistics.WebUI.WebSchedule.DateFormat.Short;
System.Globalization.CultureInfo c = new System.Globalization.CultureInfo("en-US");
c.DateTimeFormat.ShortDatePattern = "yyyy";
Then the column of the ultrawebgrid will have the format yyyy even on the first load.
Hope this helps.