![]() |
|
GTP.NET FAQ 11061Multiselect in the TimeItemArea Please note that this article
refers to the GTP.NET Jump to article- 2007-11-17 10:35:00 - Email plexityHide Question I know you can multiselect time items by holding the ctrl key while clicking them, and that you can get to all selected time items by the method gantt1.GetSelectedTimeItems(). But what if I do not allow multi select? How can I stop it? Answer To effectively stop multiselect for the TimeItems go like this: gantt1.OnTimeItem_SelectionChanged += new TimeItemEvent(gantt1_OnTimeItem_SelectionChanged); void gantt1_OnTimeItem_SelectionChanged(Gantt aGantt, TimeItemEventArgs e) { if (e.TimeItem.Selected) { foreach(TimeItem ti in gantt1.GetSelectedTimeItems()) { if (ti!=e.TimeItem) ti.Selected=false; } } }
|
"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%" |
| ? 1999-2006 PlexityHide.com Grastensvagen 24, S-163 45 Spanga Sweden E-mail: support@plexityhide.com |