I have a Gantt chart, that depicts two series.
I have a need to allow the user to click in the chart, to add a Gantt item, in a third series.
Ideally, this would show in chart, and allow the strat and end times to be set via client-side sliders.
Doest the Gantt chart support this?
(best example would be like scheduling an appointment in Outlook - where the event could be 'sized' according to the customer dragging the edges to the appropriate time)
Hello Mike,
In theory this is possible. You can click , modify the data and recreate the chart.
You can set start and end time by sliders but keep in mind that you should do a post back when you change the chart.
Also you should keep the current state of the Chart, because it will be recreated.
For example you can save the data in Session variable or in the ViewState.
After that you can add another serie to the GanttDataSource .
Please let me know if you need further assistance regarding this.
Thanks for your reply.
More specifically, I have a gantt chart that I handle the onchartdataclicked event to open a web dialog window.
there are 3 series: status, events, comments.
when a user clicks on a status gantt item, the dialog allows them to enter a comment, which shows up in the comment gantt series when they dismiss the dialog.
i want to allow the user to create a comment the same way (click in the gantt chart where there is NO DATA, and get the time back at the server to start the dialog...
the problem is, there is no data where the user clicks... so I never get the onchartdataclicked event.
I'm searching for another event that could be used, is there one (it's not apparent from the documentation)
how would i go about wiring this up?
thanks
Mike