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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SelectedItems always count always 1 Item

Thread ID:





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

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,

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

Rachel. A


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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