This is a migrated thread and some comments may be shown as answers.

RadListControl Selection Issues When Re-Ordering

7 Answers 270 Views
ListControl
This is a migrated thread and some comments may be shown as answers.
Andrew Powrie
Top achievements
Rank 1
Andrew Powrie asked on 22 Jul 2010, 03:37 AM
When SelectionMode is set to 'MultiExtended' the RadDataItem.Selected property will behave as if the Mode is 'One' (clear all other selections).

When SelectionMode is set to 'MultiSimple' and a RadDataItem is added witht the Selected property set to true then the RadDataItem will always show as selected but cannot actually be selected or de-selected. Also when the list is re-ordered then ActiveItem does not stay on the RadDataItem that was active before the re-order.

7 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 22 Jul 2010, 12:02 PM
Hello Andrew Powrie,

Thank you for writing.

This is the proper behavior in MultiExtended mode because it was designed like this. MultiExtended at its core is the same as One but provides different modes depending on the modifier keys (CTRL and SHIFT). When setting an item to Selected and adding it to a collection it makes no sense to take into accound the CTRL and SHIFT keys since adding the item is not caused by mouse selection, and therefore behaves like One.

Please share your thoughts on why should all the items be selected. If another vendor provides this behavior or if this is a particular requirement of yours we will consider adding a mode that will allow the adding of items in MultiExtended mode to behave as in MultiSimple.

Also thank you for reporting the MultiSimple issue, it will be fixed for the upcoming Q2 2010 SP1 release. Your Telerik points have been updated.

Please write again if you have other questions or if you need assistance with our controls.

Kind regards,
Victor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Andrew Powrie
Top achievements
Rank 1
answered on 23 Jul 2010, 05:03 AM
If you wanted to store what was selected in a MultiExtended list to to re-displayed later, then how would you programatically set the selected items?
0
Accepted
Victor
Telerik team
answered on 26 Jul 2010, 05:36 PM
Good point, Andrew Powrie :)

We will add a method that will allow programmatic multi-selection in MultiExtended mode.

Please write again if you have other questions.
 
Greetings,
Victor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alex
Top achievements
Rank 1
answered on 31 Jan 2011, 06:11 PM
Hello,
It's VERY important for me to have the ability of multi - selection of items programmatically.
Can you give some code for this? 

I tried to change Selected property sequentially for some items, but only the last one item became selected.
Also I've read all articles in this forum and didn't find anything that could help.

Thanks.
0
Stefan
Telerik team
answered on 03 Feb 2011, 01:29 PM
Hello Andrew Powrie,

Thank you for writing.

After multi selection you can get all selected items by accessing the SelectedItems collection instead of the SelecteItem which contains only the last selected item.

I hope this helps. Let me know if you need anything else.

Kind regards,
Stefan
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
Alex
Top achievements
Rank 1
answered on 07 Feb 2011, 06:03 PM
Hello, again.

I still need some code for setting selection for several items programmatically.
I'm using RadListControl in MultiExtended mode.
I just want to fill the list with data and to select programmatically several items (for example, 1st and 3rd).
I can't wait until next release.
Can you help me, please?
0
Stefan
Telerik team
answered on 10 Feb 2011, 11:13 AM
Hi Andrew Powrie,

Thank you for your reply.

This is already possible with the latest release of our suite. All you have to do is to add RadListControl, set the SelectionMode property to MultiExtended and select the desired items. See the attached project for the implementation.

Let me know if you need anything else.

Best wishes,
Stefan
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
ListControl
Asked by
Andrew Powrie
Top achievements
Rank 1
Answers by
Victor
Telerik team
Andrew Powrie
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or