Search code examples
teleriktelerik-reporting

Changing the style dynamically.


I want to change the style / the theme of my report based on the User.
All my User have a UserGroup. My UserGroup has custom style.
All this information are in the DB.
UserStyle: ID | ID UserGroup | LOGO | Style 1 | Color 1 | ect..

I want change my report style with those informations.
I know it is possible to give my item a style name.
But Can i define it in the main report Code behind.

Bonus: Can I do this Only once for the Main Report?

Basically using Style Name as a CssClass.


Solution

  • 2. The Designer GUI

    1. Design all your style rules
    2. Export them using. Exporting and Reusing Style Sheets

    You can bind them in your code behind , filtering on a parameter.
    Or just add them in your calling apps.