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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SelectedItems always count always 1 Item

Thread ID:

Created:

Updated:

Platform:

Replies:

121462 Dec 16,2015 09:17 PM UTC Dec 17,2015 09:29 AM UTC WPF 1
loading
Tags: GanttControl
Kamil Kosek
Asked On December 16, 2015 09:17 PM UTC

Hi,
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,
Kamil 
 

Rachel A [Syncfusion]
Replied On 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

Regards,
Rachel. A

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;