Date selection in the calendar picker

C

Chris K

I saw a couple good threads about validating and changing dates based upon
some criteria.

Is it possible to restrict the days that can be selected on the calendar?
Rather than letting the user pick a day then return an error (Sorry, it is
not a Monday) I want to only allow them to pick mondays from the list.
 
S

Scott L. Heim [MSFT]

Hi Chris,

I do not believe this would be possible although someone else may have an
idea. Is there a concern with validating the date after the selection is
made? The other option that may be a possibility is to always return the
Monday date for whatever week date they selected - if you think this may
work for you, let me know and I can provide a sample for you.

Best regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Chris K

My concern with returing the error is ... If I can prevent the user from
selecting an invalid field then I would prefer to do that. I think that
increases the positive user experience.

Your suggestion of moving to a monday would probably work. Thanks for the
offer to supply the info.

Chris
 
S

Scott L. Heim [MSFT]

Agreed and I see your point. There may be someone else in the forum that
has done something like that with the Calendar control but I am not sure
it's possible.

At any rate, if you run into any walls with the option of returning the
Monday date, don't hesitate to let me know.

Take care Chris,

Best regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top