Welcome Guest Search | Active Topics | Sign In | Register

Date Picker control. Disable user from entering in the date picker text box Options
Les
Posted: Thursday, October 15, 2009 10:36:54 AM
Rank: Newbie
Groups: Member

Joined: 10/15/2009
Posts: 2
Hi
We are utilising the eo:DatePicker control within an ASP.NET application used for ticket booking.
I could not seem to post screen shots to this forum but i have included a link to the booking system.

http://www.sarkshippingcompany.com/BookOnline/tabid/58/Default.aspx

The control is working well in the live website except that we would like the date to be displayed but ONLY allowing the date to be chosen by clicking the calendar image control to the right of the date textbox.

We dont want users typing in dates that are not possible for booking. Dates are loaded into the dropdown control and the user cannot select a date that has not been loaded as available.


However currently when the tesxt box is acive users can type directly into the date text box and they can type any date they like including dates which do not have possible bookings, After exiting the textbox the date resets to a previous date entry that is valid which is causing confusion.

We tried using the “DisableTextBox” property.

However this does not seem to allow us to set the correct look on the box and also seems to allow the user to double click the text at any time. We need to disable the text box until the user has selected an outward journey from the first dropdown list.

Is there any way to keep the eo.datepicker box as is but only allow selection from the image/calendar icon and not allow the user to type directly into the textbox.
If you require any further information please contact me.

Many thanks,
Les
Project Manager
eo_support
Posted: Thursday, October 15, 2009 10:58:56 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There are two ways to do this. One way is to use DisableTextBox as you have already noticed. You can set PickerStyle to customize the look of the text lable. I am not sure why allowing user to double click the text is an issue though.

The other way is to use PopupCalendar instead of DatePicker control. PopupCalendar is essentially a DatePicker without the text box and the image button. So you can place an image in your page and code to trigger the PopupCalendar when user clicks that image. This way you will have full control about the UI.

Here is a sample about how to use PopupCalendar:

http://demo.essentialobjects.com/Default.aspx?path=Calendar\_i1\_i5

Hope this helps.

Thanks!
Les
Posted: Friday, October 16, 2009 11:56:19 AM
Rank: Newbie
Groups: Member

Joined: 10/15/2009
Posts: 2
Hi,

We have tried the Popupcalendar and as it is only text it does not match in with the rest of the screen as all the other fields are boxes to enter in to.
The problem that we have is that we have a system that uploads a db with a series of sailings on specific dates.
The users book thier tickets on this site and we only want the users to be able to select a date via the datepicker. If they select only from the calendar the picker box would then be populated with that selected sailing date if it is available. On days not available for sailing that day on the calendar can not be selected. (as its greyed out). Once a valid date has been selected it allows them to move to the next box to select a sailing for that day.
Currently a user can enter a date into the date picker of say 01/12/2009 and if there is a sailing that day all is ok and it will populate the next field (sailing time) with time available that day. They then carry on and pay.
However, if there is no sailing that day and they enter 01/12/2009 when they click off that box the date reverts to the last available date before the 01/12/2009 and the a lot of users are not noticing that it has changed. It then offers them sailing times for the last available date and then if they have not realised the date changed they pay and dont realise until they read thier confirmation or turn up for a boat that is not sailiing.
Its a pain but that just about states why we cant let them type into the datepicker but we need the date picker box to keep the site design the same all the way through.
I hope this clarifies the problem we have.
Thanks Les
eo_support
Posted: Friday, October 16, 2009 12:30:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Les wrote:
We have tried the Popupcalendar and as it is only text it does not match in with the rest of the screen as all the other fields are boxes to enter in to.


I would expect you to code for that. The three options as explained in our previous replies are: either use a DatePicker with TextBox, or DatePicker without TextBox, or PopupCalendar without both the TextBox and Image. Our goal is to tell you what the product can do and can not do along with how to use each feature. In case what you are asking is not there, we will consider implementing it in a future release if we hear a lot about it, but in the mean time you will need to pick one that fits your best and code the rest to make it work.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.