NotSupportedException ocurred when loading saved layout

8 posts, 0 answers
  1. Irene
    Irene avatar
    4 posts
    Member since:
    Oct 2012

    Posted 15 Sep 2016 Link to this post

    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.

  2. Hristo
    Admin
    Hristo avatar
    1522 posts

    Posted 19 Sep 2016 Link to this post

    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.
  3. sharon
    sharon avatar
    3 posts
    Member since:
    Jan 2011

    Posted 15 Feb 2017 in reply to Hristo Link to this post

    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

     

  4. Hristo
    Admin
    Hristo avatar
    1522 posts

    Posted 16 Feb 2017 Link to this post

    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.
  5. sharon
    sharon avatar
    3 posts
    Member since:
    Jan 2011

    Posted 16 Feb 2017 in reply to Hristo Link to this post

    Hi!

    I am using the base RadGridView classes.

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

     

    Thanks,

    Sharon

  6. Hristo
    Admin
    Hristo avatar
    1522 posts

    Posted 17 Feb 2017 Link to this post

    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.
  7. sharon
    sharon avatar
    3 posts
    Member since:
    Jan 2011

    Posted 05 Jul 2018 in reply to Hristo Link to this post

    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

  8. Hristo
    Admin
    Hristo avatar
    1522 posts

    Posted 05 Jul 2018 Link to this post

    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.
Back to Top