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
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
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
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
Hi!
I am using the base RadGridView classes.
What is needed from my side in order to check this problem?
Thanks,
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
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
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