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
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
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
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.
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
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?
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