Datepicker control

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/22/2006 11:29:57 AM
Gravatar
Total Posts 10

Datepicker control

First, datepicker control lacks of readonly property. Sometimes I don't want that user can modify the calendar without using calendar. Also it would be nice if there would be property for setting initial value, value should be type of DateTime not string. I'm not exactly sure if there is a need for both attributes - value and initial value, maybe just value is OK too.

But definetly the Text property should be replaced with value property of type DateTime.

But it's just my opionion... :)

11/22/2006 11:39:19 AM
Gravatar
Total Posts 18439

Re: Datepicker control

I could probably easily add a SelectedDate property in addition to the Text property but I'm not sure about a good way to handle it if no date has been selected and no selection is required, not sure I would want to return DateTime.MinValue, any suggestion? Maybe we would need an IsDate boolean we could check before accessing SelectedDate

I'll consider implementing the read only when I get a chance too, but if you are in a hurry for these things maybe you could implement these changes and contribute?

Might be better to call the property CalendarSelectionOnly instead of read only since the value can still be set.

Best Regards,

Joe
11/22/2006 12:19:32 PM
Gravatar
Total Posts 10

Re: Datepicker control

Okey, I try to contribute after I have finished some urgent tasks.

What about SelectedDate then it may be type of Nullable<DateTime> ?

11/22/2006 12:29:51 PM
Gravatar
Total Posts 18439

Re: Datepicker control

Sounds good, give it a try when you get a chance.

Best Regards,

Joe
You must sign in to post in the forums. This thread is closed to new posts.