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

Context Sensitive Styles

3 Answers 47 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Wayne
Top achievements
Rank 1
Wayne asked on 03 Feb 2009, 07:23 PM
Is there any way to make custom styles context sensitive. For instance, if I have a style defined as

table.LayoutTable {...} 

I only want the style to appear when I have a table selected.

Also, if I have a specfic format for cells within this style I don't want it to show up in the CSS list. How can I hide these styles?

Example:

table.LayoutTable td {...} 

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 10 Feb 2009, 02:26 PM
Hello Wayne,

Hare are some online help articles where you can find information on Css Styles

1. Using CSS Styles - http://www.telerik.com/help/aspnet/editor/usingcssstyles.html
2. Defining custom CSS styles - http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html

I hope this helps.


Kind regards,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Wayne
Top achievements
Rank 1
answered on 10 Feb 2009, 08:55 PM
Thanks for the links.

The rules for the ASP.NET editor control do not seem to hold true for the MOSS Editor Lite. I can see the element-specific styles even when I don't have an appropriate element selected. For instance, I can see styles that are scoped to TABLE even when I do not have a table selected.
0
Stanimir
Telerik team
answered on 16 Feb 2009, 03:33 PM
Hi Wayne,

I understand the functionality that you wish to achieve, but as a matter a fact it is not implemented in the paid version of the control also. We plan do it in one of the following releases of RadControls for ASP.NET AJAX.

I apologize for the inconvenience, but since this is a difficult task I can not suggest you a suitable solution   for the moment.

Regards,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
WebParts for SharePoint
Asked by
Wayne
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Wayne
Top achievements
Rank 1
Share this question
or