Create New Record in Empty Chart

1 Answer 58 Views
OrgChart
Curtis
Top achievements
Rank 1
Curtis asked on 13 Apr 2023, 05:22 PM

Is there a way to allow users to create new entries for an empty OrgChart? We're looking at adding this widget as a means of allowing our users to create their own organizational charts. This necessarily means that the charts will start as empty - there will be no data in them to begin with. And it seems like this is unintended behavior for the widget? The only way I can find to allow for the creation of an entry into the chart is to forcibly have a fake dummy record from which the "Create" action can be invoked. An empty chart doesn't have a toolbar at all. I'd create my own toolbar, but I cannot find anything in the API that allows me to invoke the create modal via JS.

We're using the JQuery version of Kendo UI. Thanks.

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 18 Apr 2023, 01:08 PM

Hello, Curtis,

The most appropriate approach I can think of is to initialize an empty OrgChart, and then use the setDataSource method when you click a custom button to add entries in the component.

Here is a small example for reference.

Let me know how that would work for you.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
OrgChart
Asked by
Curtis
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or