|
Rank: Newbie Groups: Member
Joined: 6/3/2008 Posts: 4
|
hi all.
dont know if it has been asked earlier but how can i disable all the previous dates in the eo:DatePicker?
Thanks Ankur
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You would set MinValidDate to DateTime.Today.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 6/3/2008 Posts: 4
|
Hi, thanks for the reply it solved my problem
Further, Is there is any way to make the textbox of the date picker "Readonly" and which event can i use for client side functionality, i tired this event- "ClientSideOnSelect"
Thanks, Ankur
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, This property is what you need: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.DatePicker.DisableTextBox.htmlAs for client side functionality, ClientSideOnSelect is only a small part of it. You will want to take a look of this topic to have some basic idea about how to use our client side JavaScript interface: http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.htmlAnd client side Calendar control (it covers DatePicker as well): http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Calendar.htmlAll the documentation are also available on your local machine as a .chm file, which is much faster than the online version. Full source code for the sample project is also installed on your machine, so you may aslo want to take a look of those. Thanks
|
|
Rank: Newbie Groups: Member
Joined: 6/3/2008 Posts: 4
|
hi,
yes i did use "DisableTextbox" property but it hides the textbox completely when it loads, .. any other way which allows me to show the textbox with readonly property.
Thanks, Ankur
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
If you want both the textbox and drop down button disabled, you can set the DatePicker's Enabled to False. If you only want the textbox disabled, you would set DisableTextBox to True --- However it does replace the TextBox with a Label, which means you no longer see the textbox. If you still want to have the same look and feel as a textbox, you can edit the DatePicker's PickerStyle to include a border and background color, that should make it looks like a disabled textbox.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 6/3/2008 Posts: 4
|
eo_support wrote:Hi,
If you still want to have the same look and feel as a textbox, you can edit the DatePicker's PickerStyle to include a border and background color, that should make it looks like a disabled textbox.
Thanks I am working on this part :) Thanks for the help. Regards, Ankur
|
|