|
Rank: Guest Groups: Guest
Joined: 5/27/2007 Posts: -34
|
Hi,
I have a system where users select multiple dates as part of a registration process. After adding their details they are taken to a confirmation page.
I cannot see a way of:
1. Allowing the user to pick multiple dates unless they hold down the "shift" key 2. Disabling click events on the calendar (I do not want the user to be able to edit dates on the confirmation screen)
Please could you advise - this could be a deal breaker on whether or not I purchase the software suite.
Thanks in advance. Ben
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, As to your question, #1. It is hardcoded that way in the current build. However it is rather easy for us to add an option for whether requiring shift key or not. If you are interested in that, we can provide you an update build within a day or two for you to try out. Please just let us know; #2. You can do that by: 1. Set both MaxValidDate and MinValidDate to remote dates (for example, both to 0001-01-01). This will disable all dates so that user won't be able to click any of them; 2. If you wish to "highlight" a few selected dates, you will need to handle the Calendar's DayRender event. That event triggered for each visible date if a handler is provided. Inside that event you can render different HTML for your selected date. It will be something like this:
Code: C#
protected void Calendar1_DayRender(
object sender, EO.Web.DayRenderEventArgs e)
{
//The following code shows 2009/12/30 as red
if (e.Day.Date == new DateTime(2009, 12, 30))
e.Writer.Write(
"<span style='color:red'>{0}</span>",
e.Day.DayNumberText);
else
e.Writer.Write(e.Day.DayNumberText);
}
Hope this helps. Please feel free to let us know if you have any more questions. Thanks!
|
|
Rank: Guest Groups: Guest
Joined: 5/27/2007 Posts: -34
|
Hi,
Yes please - I would like to try out a version with a method to define whether or not the shift key is required.
Thanks for the pointer with regards to point 2, much appreciated.
Regards,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build that should address #1 (please see your private message for download location). A new property (MultiselectModifier) has been added to allow you to choose the modifier key between Shift, Alt, Control and None. The default value is "Shift", you would set the property to "None".
Thanks!
|
|