Updating OrgChart XML file on Drop Events

4 posts, 0 answers
  1. Charles
    Charles avatar
    5 posts
    Member since:
    Jul 2012

    Posted 06 Oct 2012 Link to this post

    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?
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 10 Oct 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Charles
    Charles avatar
    5 posts
    Member since:
    Jul 2012

    Posted 12 Oct 2012 Link to this post

    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.
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 17 Oct 2012 Link to this post

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