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

Theme resets to default when used in custom control for Lightswitch

4 Answers 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Magnus
Top achievements
Rank 2
Magnus asked on 27 Oct 2016, 11:50 AM
I am trying to change the theme on a radgridview.
But it wont change when rendered as a customcontrol in lightswitch.

For testpurpose I created a simple new Telerik Silverlight project with only one radgridview inside.
Then I used Stylemanager to change the theme to Vista, and this works fine running just this.
In a  Lightswitch screen I am adding a custom control by refering this silverlight control. 

When running the Lightswitch application the gridview render and works fine, but the theme is changed back to the default theme "office black".

Is it something I missed, or doing wrong?
I have tried setting the theme both by Stylemanager and using Implicit Styles.

4 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 01 Nov 2016, 10:04 AM
Hello Magnus,

I recommend that you make sure that all required Telerik assemblies are referenced in the LightSwitch project and more specifically the Telerik.Windows.Themes.Vista assembly. This is applicable for both StyleManager and Implicit styles theming mechanisms. There's just one major difference runtime if the theme assembly is missing -- with StyleManager it will fallback to the default OfficeBlack theme (as in your case) and with NoXAML binaries (required for Implicit styles theming mechanism) you won't see nothing runtime simply because there is no theme resource file to render your xaml from.

Regards,
Evgenia
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Burak
Top achievements
Rank 1
answered on 20 Jan 2017, 03:54 PM

Hi. I am using telerik and ı am getting this error. 

 

On local computer it works but after publish It doesnt work. Can you help me ?

0
Evgenia
Telerik team
answered on 25 Jan 2017, 10:57 AM
Hi Burak,

It is hard for me to say what might be the cause for such issue from the error image you sent. What seems more strange to me is that I see a reference to Telerik.Web.UI assembly which we ship with UI for ASP.NET Ajax. Do you really need it in your app? Also I'd like to suggest that you try and remove our Silverlight controls and assemblies and check whether the error still reproduces.

Regards,
Evgenia
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Burak
Top achievements
Rank 1
answered on 25 Jan 2017, 11:39 AM

Hi Evgenia;

 

I found the problem. I am new with telerik. And my boss gave me this project. I didnt know telerik.

 

My problem was web.config 

I fount amateur coding in my web.config 

There was c:/project/xx.txt  ext.  In my computer it works but in server there isnt project folder. That was the error.

 

Thanks for reply.

Tags
General Discussions
Asked by
Magnus
Top achievements
Rank 2
Answers by
Evgenia
Telerik team
Burak
Top achievements
Rank 1
Share this question
or