Problem with GridViewCellCoreStyle

1 Answer 261 Views
GridView
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 21 Feb 2022, 03:23 PM | edited on 22 Feb 2022, 10:14 AM

Hello,

I have an old Silverlight application with the following in the App.xaml file:

      <Style TargetType="tk:GridViewCell" BasedOn="{StaticResource GridViewCellCoreStyle}" />

After updating to the latest, the application no more works: it crashes as soon it displays a GridView control, without any useful error message. It takes me a long time to find the error because I can no more run the application with a debugger and I have no useful error message.

As the application was running fine before I updated Telerik UI for Silverlight, I suppose that the above line is the culprit. Unfortunately, I don't know the previous version of Telerik UI for Silverlight that was used for the application.

I hope this is enough for you to find the bug.

 

Best regards

Dilyan Traykov
Telerik team
commented on 22 Feb 2022, 02:04 PM

Hello Patrick,

I tried to replicate the issue you described in a small sample project, however, the project builds and runs successfully at my end when using this lightweight style. You can find the project attached for your reference.

Please have in mind that the lightweight templates (styles) are only available when using the NoXaml binaries. With this said, it is possible that during the upgrade the references were changed to use the standard Xaml binaries instead of the NoXaml ones which would lead to an error. Can you please check all Telerik references and ensure they all point to the assemblies from the Binaries.NoXaml folder of your Telerik UI for Silverlight installation or respective folder? You can try to manually replace all references to ensure this is the case.

Do let me know how this goes.

1 Answer, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 22 Feb 2022, 03:04 PM

Hi Dilyan,

Try with the Office2013 theme, that's the one I'm using.

Best regards

Dilyan Traykov
Telerik team
commented on 23 Feb 2022, 12:44 PM

Thank you very much for the clarification.

I can confirm that I was able to replicate the issue with the Office2013 theme and we've already introduced a fix for it which will be available with our next internal build on Monday.

For the time being, you can predefine the style as I've demonstrated in the attached project. Please let me know if this resolves the issue at your end.
Tags
GridView
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or