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
Thank you for the clarification.
You can use the approach shared in the below forum post
http://community.infragistics.com/forums/p/8571/34860.aspx
You can also add the chart inside ASP Panel, div , etc and handle its onClick, for example :
<div onclick="return on_click();">
</div>
Please keep in mind that you should call __doPostPack, inside the javascript function,
with the ID of the UltraWebChart as first parameter.
Let me know if you need further assistance regarding this.
I am just checking about the progress of this issue.
Does the global click "overrides" your existing click on an exisitng DataItem ?
Let me know if you need further assistance.
this looks promising... but would it break my existing feature of clicking on a data item resulting in a more specific dialog?
1. click on an exisitng DataItem - open a dialog to add comment to that specific item (timestamp)
2. click on non-data item area - open a dialog to add a new comment (would be nice to know the approximate timestamp that the mouse was over at the time of the click)
I'll do a quick test to see if my suspicion is correct...
If so, I may have to create a single data item, color it transparent, and have it span the entire timespan of the chart - in order to catch the click... or, if needed, create many transparent items - in order to get the approximate timestamp of the region clicked...