This is a migrated thread and some comments may be shown as answers.
Change style.color on DateInput
2 Answers 22 Views
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 16 Nov 2009, 04:45 PM
I'm using RadDatePicker  and I have client event

<

 

ClientEvents OnDateSelected="DateSelected" />

 

<

 

DateInput ... />
inside that handler I would like to change the color of DateInput text to red, indicating change was made
but I cannot. I've tried several ways and nothing works. Please help

function

 

DateSelected(sender, eventArgs) {
    //change color of the DateInput

 

}

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 18 Nov 2009, 04:18 PM
Hello Martin,

You have to use the approach described at the bottom of this help topic:

http://www.telerik.com/help/aspnet-ajax/input_clientsidebasics.html

You can reference the DateInput control in the clientside DateSelected handler with sender.get_dateInput().

These are the styles that you may want to use:

EnabledStyle
HoveredStyle
FocusedStyle

SomeStyle[0] is for the inline textbox styles, while SomeStyle[1] is for the textbox CSS classes for the respective state.
 

Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Martin
Top achievements
Rank 1
answered on 19 Nov 2009, 09:40 PM
thank you, that did the trick.
Asked by
Martin
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Martin
Top achievements
Rank 1
Share this question
or