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

Updating OrgChart XML file on Drop Events

3 Answers 39 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 07 Oct 2012, 04:27 AM
Does Telerik have an object that the OrgChart XML can be deserialized to?

I currently load the data from an XML file using the LoadContentFile method. I would like to update the OrgChart XML file on the GroupItemDrop and NodeDrop events and since there are no IDs, it seems like the best approach would be to deseralize the XML, then update the XML object, write to the file, and rebind the control.

Is that the best way to update the XML file or is there a better way to do this?

3 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 10 Oct 2012, 07:33 AM
Hello Charles,

Please review the following help topic how to import/export the RadOrgChart control in XML. Keep in mind that the Drop event only gives you a reference the nodes and they are not reordered.

Kind regards,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Charles
Top achievements
Rank 1
answered on 13 Oct 2012, 01:52 AM
Peter,

The problem is that the XML doesn't have any IDs so when the drop event args only have the destination and source IDs it makes it difficult to update the source XML.

It would be nice if you had a help topic on this or a method on the control that one could pass the event args to that would allow the source XML to be updated.

While we are on the subject of enhancement requests, it would also be nice if the user could edit the nodes and groups using a RadMenu (or some other interface). Also the ability to add/remove nodes and groups would be nice too.
0
Peter Filipov
Telerik team
answered on 17 Oct 2012, 10:27 AM
Hi Charles,

We are going to improve the XML export/import and add Nodes/GroupItems IDs. Regarding your second request, we just added such demo. Please review the following link.

All the best,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
OrgChart
Asked by
Charles
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Charles
Top achievements
Rank 1
Share this question
or