Hi,
my approach (using MVVM) is something like your "OrgChart" example.
Assume this example, where you start with the CEO predefined.
Then from a list the user can drag employees to the chart.
Employees can change their position (by being dragged to a different "chief / leader").
Every Employee is assigned to another one.
There are kind of employees which may not "rule" others (let's say trainees). These employees can't act as "drop destination"
So the rules are:
- One node is fixed (CEO)
- the user must drop the new / existing Node on an existing one
- depending on the node type dropping is enabled or not (Visual feedback should be provided - like containers do)
After a drop operation I recalculate the Org-Model add / remove connectors and redraw the chart.
Is there an easy way to achieve this?
Manfred
my approach (using MVVM) is something like your "OrgChart" example.
Assume this example, where you start with the CEO predefined.
Then from a list the user can drag employees to the chart.
Employees can change their position (by being dragged to a different "chief / leader").
Every Employee is assigned to another one.
There are kind of employees which may not "rule" others (let's say trainees). These employees can't act as "drop destination"
So the rules are:
- One node is fixed (CEO)
- the user must drop the new / existing Node on an existing one
- depending on the node type dropping is enabled or not (Visual feedback should be provided - like containers do)
After a drop operation I recalculate the Org-Model add / remove connectors and redraw the chart.
Is there an easy way to achieve this?
Manfred