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

Get index of checked items ?

1 Answer 97 Views
CheckedDropDownList
This is a migrated thread and some comments may be shown as answers.
George C.
Top achievements
Rank 2
Iron
Veteran
George C. asked on 25 Jan 2019, 08:07 PM

Greetings,

How can I get index of checked items , put in lines of a string  ?

Imagine I have checked the first , forth and sixth items , so I will have :

1

4

6

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 28 Jan 2019, 02:54 PM
Hello, George,      

RadCheckedDropDownList stores all checked items in the CheckedItems collection. You can extract the index of each checked item by using the following approach:

foreach (RadCheckedListDataItem item in this.radCheckedDropDownList1.CheckedItems)
{
    Console.WriteLine(this.radCheckedDropDownList1.Items.IndexOf(item));
}

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
CheckedDropDownList
Asked by
George C.
Top achievements
Rank 2
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or