Welcome Guest Search | Active Topics | Sign In | Register

DatePicker readonly Options
oeoeoe
Posted: Friday, October 22, 2010 3:49:11 AM
Rank: Member
Groups: Member

Joined: 10/13/2010
Posts: 11
Hey

I'm using the DatePicker Control and have a little issue...
If I set enabled to false <input type="text"> css style cannot get modified for internet explorer.

I already tried inherit datepicker to render the control different if readonly property (my Property) is active but then i get problems with javascript.

I just want to replace html enabled threw readonly

Thanks in advance
eo_support
Posted: Friday, October 22, 2010 9:25:05 AM
Rank: Administration
Groups: Administration

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

I am not sure if I understand your question correctly. For DatePicker you do not need to style the textbox directly. You would need to modidy the DatePicker's PickerStyle property. Styles set in that property is applied to the textbox.

Thanks!
oeoeoe
Posted: Monday, October 25, 2010 5:42:28 AM
Rank: Member
Groups: Member

Joined: 10/13/2010
Posts: 11
Hey,

It's ok right now but my question was how I could get the possibilty to set the input box readonly="readonly" and not enabled = "false", the reason is in internetexplorer enabled = "false" ignores css style for background of input box.
eo_support
Posted: Monday, October 25, 2010 9:23:48 AM
Rank: Administration
Groups: Administration

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

You can not set readonly="readonly on a DatePicker's textbox. However if you set Enabled to false, then set the DatePicker's PickerStyle, you will be able to change the textbox's background color.

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.