Context Sensitive Styles

4 posts, 0 answers
  1. Wayne
    Wayne avatar
    2 posts
    Member since:
    Jan 2009

    Posted 03 Feb 2009 Link to this post

    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 {...} 
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 10 Feb 2009 Link to this post

    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.

  3. Wayne
    Wayne avatar
    2 posts
    Member since:
    Jan 2009

    Posted 10 Feb 2009 Link to this post

    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.
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 16 Feb 2009 Link to this post

    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.
Back to Top