Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
Managing several styles within one style set
posted

Hello,

using the Application stylist, there is in my opinion one feature missing which would ease a lot the management of styles for the same control within one style set.

Example:

I like to organize one style for guests and different styles for logged in users of different user types. So, my styles are related to user types and login status.

Today, I can only define a style set with one style setting for one control like e.g. webmenu. In order to get another style definition of this control, I need to create a new style set, so related to my requirement as described above I need to create individual style sets for each combination login status + user type.

If you like to follow a concept of having many style definitions of one control within one style set, it would be more comfortable to have different versions of control related style definitions, inheritated from one control related root style.

So in my example it would perfect to have one style set with webmenu related root style definition and additional inheritated styles  in order to get login status / user type related styles of the webmenu.
This feature maybe well support by CSS.

Is there maybe already a solution available like this?

Yours
Stephan

Parents
  • 12004
    posted

    Hello Stephan,

    In the WebDataMenu control there's a StyleSetName propery that you can set dynamically at runtime to switch into different styles. Mainly you can create all the styles that you need and the css files get imported to the ig_res folder automatically. So for example if you would like to change from the Default styleset to Office2010Blue depending on some conditions, you can first import all the stylesets needed into the project (Each styleset will be located in the subfolder of ig_res) and then set the style set by the StyleSetName property of the control. This applied to other Infragistics controls as well.

    Let me know if you have any questions with this matter.

    Sincerely,
    Duane Hoyt
    Developer Support Engineer, MCTS
    Infragistics
    http://ko.infragistics.com/support

Reply Children