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

[Solved] '_wrapper'

5 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 27 May 2008, 08:22 PM
We are currently on RadControls for ASP.NET 2007 Q1 and are planning a migration to RadControls for ASP.NET AJAX in the near future and were wondering if the '_wrapper' spans were still used as a wrapper in the new version.  We've found a use for setting the css class of the wrapper and would like to make sure this is still viable in the new version before we fully implement it.

Thank you,

Jim

5 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 28 May 2008, 03:30 PM
Hi Jim,

We are not using the "_wrapper" spans in all AJAX controls any more. This was used as a workaround to a limitation we have now completely solved with the new framework.

Please let us know what controls you are using and what exactly is you scenario for the custom CSS classes. We will do our best to help you do that with the new controls as well.

Kind regards,
Ivo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jim
Top achievements
Rank 1
answered on 28 May 2008, 03:39 PM
I am trying to set the class in order to cause the control background to change color when a valid entry is in the field.  I want to be able to do this with the RadTextBox, the RadNumericTextBox, the RadMaskedTextBox, the RadComboBox, and the date and time fields.
0
Rosi
Telerik team
answered on 29 May 2008, 10:56 AM
Hi Jim,

RadInput still renders  "_wrapper" spans. In this case you can use the same approach as you used for  RadControls for ASP.NET.

RadComboBox is rendered as div and it hasn't  a "_wrapper" span around it. I suggest you use the CssClass property of RadComboBox to change its visual appearance.

Also you could read more about how to control visual appearance of RadComboBox here

Hope this helps.

Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jim
Top achievements
Rank 1
answered on 09 Jun 2008, 01:44 PM
The only difficulty I have with setting the CssClass property is that I am trying to make these changes on the Client side.
0
Rosi
Telerik team
answered on 09 Jun 2008, 03:20 PM
Hello Jim,

You can find the div element which represents RadComboBox and change its style by the following way:

<script type="text/javascript">

var combo = $find('<%=RadComboBox1.ClientID%>');
var div = combo.get_element();
div.style = "set your style here";

</script>

Hope this helps.
Regards,
Rosi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Jim
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Jim
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or