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

NotSupportedException ocurred when loading saved layout

7 Answers 19 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Irene
Top achievements
Rank 2
Irene asked on 15 Sep 2016, 08:53 AM

Hi, I'm having problems with Saving/Loading layouts.

I'm saving automatically the layout of all my tables to XML files, with "SaveLayout" method, I don't do anything additional.

When the application starts, all that XML files saved, are loaded with "LoadLayout" method. I don't know why, but in some cases, I'm getting this error on LoadLayout:

 

NotSupportedException ocurred.

Exception thrown: 'System.NotSupportedException' in System.dll

Additional information: CultureInfoConverter cannot convert from (null).

 

I've tried to reduce the structure of the table doing it simpler, (decreasing the number of columns, and removing hierarchy), but I'm getting the same error.

Thanks in advance.

7 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 19 Sep 2016, 02:46 PM
Hello Irene,

Thank you for writing.

It is hard to investigate the exception without actually examining your XML file. Please follow up in the support ticket you have opened on the same topic with the XML content so that we can further look into the issue.

Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
0
sharon
Top achievements
Rank 1
answered on 15 Feb 2017, 08:49 PM

Hi!

I am getting the next error when loading the grid layout:

"no parameterless constructor defined for this object"

I am using "R3 2016 SP1".

Is there a known bug in this area?

 

Thanks,

Sharon

 

0
Hristo
Telerik team
answered on 16 Feb 2017, 03:36 PM
Hi Sharon,

Thank you for writing.

We are not aware of an issue which would result in the reported. In case you have inherited RadGridView and substitute some of the classes which are building it, please make sure that they have parameterless constructors. 

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
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
sharon
Top achievements
Rank 1
answered on 16 Feb 2017, 09:53 PM

Hi!

I am using the base RadGridView classes.

What is needed from my side in order to check this problem?

 

Thanks,

Sharon

0
Hristo
Telerik team
answered on 17 Feb 2017, 03:34 PM
Hi Sharon,

Thank you for writing back.

Without actually having your project it is hard to say what is causing the described on your end behavior. Please open up a support ticket and attach your project demonstrating the issue. This way we would be able to examine it thoroughly.

I hope this helps. Please let me know if you have other questions. 

Regards,
Hristo
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
sharon
Top achievements
Rank 1
answered on 05 Jul 2018, 10:06 AM

Hi!

I am back to this issue.

I commented the load layout and now I need to open it again.

Still I am getting an exception when loading the saved layout.

Now I am getting another exception - attached in a png file.

A sample layout is also attached. (as png, but it is XML)

 

Thanks,

Sharon

0
Hristo
Telerik team
answered on 05 Jul 2018, 11:46 AM
Hi Irene,

I loaded the provided XML file and there were no errors on my end. Please check the attached screenshot. Such an exception might be thrown if any of your data-bound objects don`t have an empty constructor. Can you please check and see if they are missing such a constructor. In case the issue persists please open a support ticket and send us your project so that we can observe the issue and investigate it. 

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Irene
Top achievements
Rank 2
Answers by
Hristo
Telerik team
sharon
Top achievements
Rank 1
Share this question
or