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

Need help changing StyleSheet programmatically

1 Answer 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Builk
Top achievements
Rank 2
Builk asked on 19 Jun 2014, 11:33 AM
#ASP.NET #MVC #localization

I created a test report to prove if I can change values in StyleSheet programmatically and it worked, so I used EXACTLY the same method with another existing report.

My web application need specific Style for items with every cultures localized. I don't want to use traditional way of localizing (through .resx) because there're too many items within my reports that need localizing (almost every item).

Any advice in this matter would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 24 Jun 2014, 09:03 AM
Hi Builk,

If you do not want to use the standard localization approach with resx files, you can implement custom logic to retrieve the localized strings, and use it in a user function which is used in the expression for the item's Value property. In the user function you will be able to get the processing item and its Style object as well.
You can also use conditional formatting based on the user function, report parameters or other valid expression.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Builk
Top achievements
Rank 2
Answers by
Stef
Telerik team
Share this question
or