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

CheckedListBox

5 Answers 110 Views
This is a migrated thread and some comments may be shown as answers.
Gunawan Rahardjo
Top achievements
Rank 1
Gunawan Rahardjo asked on 13 Apr 2010, 10:55 AM

Hi there,

Is there any rad control that similar with window's CheckedListBox?


Thanks.

5 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 15 Apr 2010, 03:59 PM
Hi Gunawan Rahardjo,

Thank you for the question.

Generally, we do not have a dedicated CheckedListBox. However, you can easily transform our RadGridView in a checked listbox. For additional information, please refer to the following article: Create MultiColumnListBox based on RadGridView.

I hope this helps. If you have additional questions, feel free to contact me.

All the best,
Nikolay
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
jamsheer
Top achievements
Rank 1
Veteran
answered on 19 Sep 2017, 07:35 AM

Hello,
   Is there any option to get the index of an item of CheckedListBox with specified Item Text , without  using any loop ,I mean

int indx = radCheckedListBox1.Items.IndexOf("ABC");

In the above code I have getting the index -1 at all time.

I think You got my Question .

Thank you.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Sep 2017, 09:22 AM
Jamsheer, 

Thank you for writing.  

The Items.IndexOf method requires a ListViewDataItem, not a string value. That is why it returns -1. In order to find a specific item by given text, it would be necessary to iterate the Items collection and find the match.

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
jamsheer
Top achievements
Rank 1
Veteran
answered on 20 Sep 2017, 06:35 AM

Hello,
   I have a checkedListView like the below pic,

where I want to check the column name as "Tin No" without any loop ,

How could I do this
Hope You got my Question.
Thank you.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Sep 2017, 12:57 PM
Hello, Jamsheer, 

Thank you for writing back. 

It is not possible to find the ListViewDataItem by a given text without iterating the Items collection. Even if you use a lambda expression it internally will iterate the items.

I hope this information helps. If you have any additional questions, please let me know. 

 Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Gunawan Rahardjo
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
jamsheer
Top achievements
Rank 1
Veteran
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or