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

SelectedIndices

1 Answer 114 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patric
Top achievements
Rank 1
Patric asked on 03 May 2010, 12:15 PM
In the Q1 release of the Telerik WinForms the

listbox.SelectedIndices

is gone. Is there a equivalent or do i have to check against the values?
since i'm working with a static list in this case the index is the ID of the item, and
the performance of caching the indices is better than getting the object values of the raditem.
(Multiselection of course)

What do you guys suggest?

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 04 May 2010, 09:26 AM
Hello Patric,

During the refactoring of RadListBox's data binding for Q3 2009 we decided that the SelectedIndices collection, along with a few other internal things, is adding unnecessary complexity to the code, so we decided to remove it. You can easily migrate your application by using the SelectedItems collection and getting the value of the RadListBoxItem.Index property. The Index property is cached and will not cause a slow down.

Write again if you have other questions.

Sincerely yours,
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Patric
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or