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
180
How can the Web Date Chooser be reset and keep the defined style?
posted

I have a calendar control whose value I'm setting to null when the search form is cleared.  The CalendarLayout.Reset command does what I need it to (sets back to current month and year); however, the defined style (skin file) is lost.  I have tried various approaches to using the defined style but nothing is working with the exception of re-defining each setting in code.

 Is there any way to use the defined style after resetting the control?

 Thanks!

Parents
  • 21382
    posted

     Reset is a control level method, which is going to put the control back to it's base state.  It sounds like all you would need to do set the Value of the control back to DateTime.Now or null (whichever is the value of the control when you just drop it on the form).

Reply Children