We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SelectedItems always count always 1 Item

i got a button with a command bound to it and as parameter I´m passing the Gantt´s SelectedItems property

                    <Button Content="Test Command" Command="{Binding TestCommand}" CommandParameter="{Binding ElementName=gantt,Path=SelectedItems}" >

The issue is, that the passed parameter is always the last element from the selection. It doesn´t matter if I select multiple items with the mouse or Keyboard with pressed Shift or Alt key.#
Any ideas ? 

Thanks in advance,

1 Reply

RA Rachel A Syncfusion Team December 17, 2015 09:29 AM UTC

Hi Kamil,

Thanks for contacting Syncfusion support.

SelectedItems property in GanttControl is used to get only the currently selected item. In order to get the list of selected nodes in the GanttGrid, we can use SelectedNodes property in GanttGrid .We have prepared the sample based on your requirement and you can download the sample from the following location.

Sample: GridSelection

Rachel. A

Live Chat Icon For mobile
Up arrow icon