This is a migrated thread and some comments may be shown as answers.

RAD Date Picker in RAD Grid "Edit Form" style overridden.

2 Answers 55 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 05 Sep 2008, 09:11 AM
Hiya

We are using the RAD Grid with the EditMode set to "EditForms" and have a nested RadDatePicker.

When an invalid date is entered into the control the Error style sheet is overridden by the GridEditForm see below for extract from IE Developer Toolbar.

What do I need to do to get this working?

.GridEditForm_WebBlue INPUT[type='text'] {

                BORDER-RIGHT: #8b9cac 1px solid;

                BORDER-TOP: #8b9cac 1px solid;

                BACKGROUND: #fff;

                FONT: 11px arial,tahoma,sans-serif;

                BORDER-LEFT: #8b9cac 1px solid;

                COLOR: #333;

                BORDER-BOTTOM: #8b9cac 1px solid

}

.radInvalidCss_WebBlue {

                BORDER-RIGHT: #8b9cac 1px solid;

                PADDING-RIGHT: 0px;

                BORDER-TOP: #8b9cac 1px solid;

                PADDING-LEFT: 1px;

                BACKGROUND: #fff;

                PADDING-BOTTOM: 2px;

                FONT: 12px arial,tahoma,sans-serif;

                BORDER-LEFT: #8b9cac 1px solid;

                COLOR: #333;

                PADDING-TOP: 2px;

                BORDER-BOTTOM: #8b9cac 1px solid

}

 

.radInvalidCss_WebBlue {

                BORDER-LEFT-COLOR: #ff9000;

                BORDER-BOTTOM-COLOR: #ff9000;

                BORDER-TOP-COLOR: #ff9000;

                BORDER-RIGHT-COLOR: #ff9000

}



 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 05 Sep 2008, 09:22 AM
Hi Richard,

This problem has been fixed in Q2 2008 SP1, please upgrade. Otherwise, you will need to override the grid styles inherited by the date picker, using a technique similar to this one:

How To Override Styles in a RadControl for ASP.NET AJAX' Embedded Skin


Best wishes,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Richard
Top achievements
Rank 1
answered on 08 Sep 2008, 08:49 AM
Thanks,

We went for the service pack, worked a treat
Tags
Ajax
Asked by
Richard
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Richard
Top achievements
Rank 1
Share this question
or