I'm setting the culture of datepicker and use the code below.
i've set the IsReadonly= true so that the user cannot input by manually inputing a date, the code above is working fine, but when you click the DatePicker textbox and then click another control error is occured, "Object not set to a reference of object" any idea?
CultureInfo cultureInfo = new CultureInfo("en-US"); |
DateTimeFormatInfo dateInfo = new DateTimeFormatInfo(); |
dateInfo.ShortDatePattern = "MM/yyyy"; |
cultureInfo.DateTimeFormat = dateInfo; |
radDatePicker1.Culture = cultureInfo; |
i've set the IsReadonly= true so that the user cannot input by manually inputing a date, the code above is working fine, but when you click the DatePicker textbox and then click another control error is occured, "Object not set to a reference of object" any idea?