Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / NET6 UltraGrid missing methods LoadFromXML and SaveAsXml

NET6 UltraGrid missing methods LoadFromXML and SaveAsXml

New Discussion
Roberto Baruffa
Roberto Baruffa asked on Jul 29, 2022 8:40 AM

Hi guys,

 I'm using WinForms UltraGrid for NET6 (not .Net Framework) and noticed that grid.DisplayLayout.LoadFromXML() and grid.DisplayLayout.SaveAsXml() are missing.

In my application I need load previously saved xml layout (from a .Net Framework version) at runtime.

Please can You provide any workaround?

Bye

Roberto

Sign In to post a reply

Replies

  • 0
    Andrew Goldenbaum
    Andrew Goldenbaum answered on May 2, 2022 7:37 PM

    Hello Roberto,

    I have been investigating into your requirement, and you are correct that the LoadFromXml and SaveAsXml methods are not present on the UltraGrid.DisplayLayout in .NET 6. The reason for this is because Microsoft discontinued the SoapFormatter class in .NET Core, which the methods in question used extensively.

    Luckily, we do expose other methods to save and load the layout of the UltraGridLayout via the Save and Load methods. These will save to binary, and so if you have an XML file that needs to be loaded, I would recommend that you first load it in a .NET Framework application and then re-save it using the Save method.

    Please let me know if you have any other questions or concerns on this matter.

    • 0
      Uwe Hein
      Uwe Hein answered on Jun 27, 2022 11:36 AM

      Hi Andrew,
        could you please post an example on how to load an "old" xml file and convert it to th new format. It is no problem to use .save and .load – I just cannot load the old xml files an apply the settings to my grid.
        TIA
          regards
            Uwe

    • 0
      Albert Mosialek
      Albert Mosialek answered on Jul 29, 2022 8:40 AM

      Hello,

      I found the same issue with ultraDockManager. Unfortunately there is no info in the docs that this feature is no longer available in net6 and it is not so easy to find this topic in google. Could you please update the docs for SaveAsXml/LoadAsXml methods with warning that these methods are missing in Net6?

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Roberto Baruffa
Favorites
0
Replies
3
Created On
Jul 29, 2022
Last Post
3 years, 7 months ago

Suggested Discussions

Created by

Created on

Jul 29, 2022 8:40 AM

Last activity on

Jul 29, 2022 8:40 AM