This question is locked. New answers and comments are not allowed.
We have recently updgraded to the lastest version of Telerik controls for silverlight and running into a lot of issues.
Before the upgrade, I had this snippet of code, where I'm assuming that by creating the HtmlDataProvider, the FormatProvider was created as well without any additional logic. I had immediate access to the FormatProvider
Now this same block of code causes a NullReference Exception because FormatProvider is null.
What changed, and how do I fix it?
Thanks
Before the upgrade, I had this snippet of code, where I'm assuming that by creating the HtmlDataProvider, the FormatProvider was created as well without any additional logic. I had immediate access to the FormatProvider
HtmlDataProvider = new HtmlDataProvider();var provider = (HtmlFormatProvider)HtmlDataProvider.FormatProvider;provider.ExportSettings = new HtmlExportSettings { ImageExportMode = ImageExportMode.UriSource, DocumentExportLevel = DocumentExportLevel.Fragment, StylesExportMode = StylesExportMode.Inline };Now this same block of code causes a NullReference Exception because FormatProvider is null.
What changed, and how do I fix it?
Thanks