We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

PropertyGrid could not deserialize data from XML

Thread ID:

Created:

Updated:

Platform:

Replies:

123551 Mar 29,2016 11:40 PM Apr 4,2016 12:57 AM WPF 7
loading
Tags: PropertyGrid
Mers Tho
Asked On March 29, 2016 11:40 PM

Hi,

I'm facing the deserialize problem for my propertygrid, I've posted related program before, after I save the data into the XML, the program can not load the XML file properly. Is anyone know the problem?
Thank in advance.

Attachment: WpfApplication9_7f2dc4bf.zip

Sugapriya Mariappan [Syncfusion]
Replied On March 30, 2016 03:22 AM

Hi Tho Jun,

Thank you for contacting Syncfusion Support

We have modified your updated sample to meet your requirement. In this sample we have assigned SelectedObject of the PropertyGrid to the object of the Person class. Now the Name property will get updated properly while serializing and deserializing it

Please find the modified sample from the below link

Sample:WpfApplication9

Regards,
M.Sugapriya

Mers Tho
Replied On March 30, 2016 06:17 AM

Hi, the problem still exist, It can load properly no matter how I change the data in XML file, however I could not save the data properly after I click load button.

Sugapriya Mariappan [Syncfusion]
Replied On March 31, 2016 05:36 AM

Hi Tho Jun,

We were unable to reproduce the issue from our side and we can load the XML file when we change the data in XML file manually or while changing it at runtime. Could you please provide more information about the issue replication steps to analyze further on this?

Regards,
M.Sugapriya

Mers Tho
Replied On March 31, 2016 06:37 AM

Hi,

This is my situation : 

Before I click the Load button in my sample, I can save properly into XML file no matter how I change the data in property grid at run time, but once I first click the load button, the load function can work properly at this moment, but the save button will not work properly anymore  after clicking the load button. The data shown in XML file is not exactly the same with the data I had edited in the propertygrid at the run time.

Sugapriya Mariappan [Syncfusion]
Replied On April 1, 2016 04:43 AM

Hi Tho Jun,

We are still unable to reproduce the reported issue form our side and we can save the data properly after clicking the Load Button for the first time. We have also updated a video which demonstrates the same.

Please find the video and sample from the below link

Video Link:video
Sample Link: PropertyGridSample

We have also reattached the sample above and please ensure us whether you are using the same sample? If you still face the same issue, please revert with more information by modifying the sample. So that we could further analyze on this.

Regards,
M.Sugapriya


Mers Tho
Replied On April 1, 2016 05:32 AM

Hi, the sample you had created solve the problem, the problem is because i left out             

       obj = (Person)PropertyDemo.SelectedObject;

this line in my save button. Thank you so much for helping me to solve this!! Much appreciated with your help and the efficiency!!!



Sugapriya Mariappan [Syncfusion]
Replied On April 4, 2016 12:57 AM

Hi Tho Jun,

Thank you for your update.

Please let us know if you need any other assistance

Regards,
M.Sugapriya

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;