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

OrgChart Client-Side Programming

9 Answers 106 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Shane
Top achievements
Rank 2
Shane asked on 06 Jun 2012, 08:20 AM
Hi,

The documentation and demos don't seem to show much in the way of client-side functionality is this true or can you supply more information?

Essentially I'm looking for a control that can support a multi-level hierarchy where nodes can be dragged on or off the chart. Therefore lets say you have a list of people down one side and you wish to organise them by dragging and dropping them onto the OrgChart. From the looks of it I can't see any client-side functionality for creating/removing nodes. Do you think the functionality I ask is possible to implement (or extend) with this control?

Thanks,
Shane

9 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 11 Jun 2012, 06:33 AM
Hello Shane,

This is an interesting question. Thank you for asking it. So far there is not client Api so you can not create and remove nodes. If you want to rebind such functionality you will have to add/remove nodes to the DataSouce and rebind RadOrgChart.

Greetings,
Plamen Zdravkov
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
sitefinitysteve
Top achievements
Rank 2
Veteran
answered on 18 Jun 2012, 02:51 PM
Can I officially request this as a feature (PITS)?  Even if the client API has less functionality, the ability to add\remove on the client is HUGE
0
Plamen
Telerik team
answered on 21 Jun 2012, 01:38 PM
Hello Steve,

 
Thank you for sharing your opinion concerning this functionality.

 It have been discussed once again with our team and an implementation of such functionality was put on hold for the moment because RadOrgChart is designed always to represent some items or groups of a DataSource and that is why at each crud operation made the DataBase should be updated and RadOrgChart- rebound. In this aspect if a node is added or removed from the client side after a post back the change will be lost. 

Hope this will explain the issue.

Kind regards,
Plamen Zdravkov
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
sitefinitysteve
Top achievements
Rank 2
Veteran
answered on 21 Jun 2012, 01:45 PM
Can I respectfully disagree? :)

Telerik shouldn't be telling us how we are to use the controls, you should be giving us feature rich controls which we can use however we want.  By this I mean, if I want the org chart to render out on the client, and add\remove things (on the client), it'll clearly be up to me to persist those back with $.ajax ...I would never expect you to! (thatd be crazy). 

Common, it's 2012, we're moving to clientside functionality now, less reliance on the server.

Now I can understand it's probably technically REALLY difficult to implement, so that's a perfectly good reason to not want to attempt it :)

Steve
0
Plamen
Telerik team
answered on 26 Jun 2012, 12:25 PM
Hello Steve,

 
Thank you for sharing your thoughts and insisting on adding such functionality.

We have thought over it once again and came to an idea for adding client functionality for add,remove Nodes and GroupItems in the future. A client-side event(like "nodeAdded" for example) will be fired in order to allow immediate update of the DataSource. Otherwise after a postback all the changes will be lost because RadOrgChart does not support automatic updates of the underlying DataSource.

 I have created a PITS item where you can vote for this issue and follow its progress.

Kind Regards,
Plamen Zdravkov
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
sitefinitysteve
Top achievements
Rank 2
Veteran
answered on 26 Jun 2012, 12:30 PM
Beauty thanks!

I'll be glad to update the DS myself, just (like you said) let me hook into an event :)
0
Vijay
Top achievements
Rank 1
answered on 01 Jul 2014, 08:52 AM
Hello,

Is client side programming feature is available now with latest version? We are planning to use this tool but post back for every operation seems to be a limitation.
0
Vinh
Top achievements
Rank 1
answered on 14 Oct 2015, 06:55 PM
Sad to see such limitations on orgchart - so little client side api.
0
Vinh
Top achievements
Rank 1
answered on 15 Oct 2015, 04:10 PM

For those seeking rich,well-documented client api, please use google charts - it's FREE!

https://developers.google.com/chart/interactive/docs/

Tags
OrgChart
Asked by
Shane
Top achievements
Rank 2
Answers by
Plamen
Telerik team
sitefinitysteve
Top achievements
Rank 2
Veteran
Vijay
Top achievements
Rank 1
Vinh
Top achievements
Rank 1
Share this question
or