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

Programmatically, the Check box related to "SelectedValue" is not checked properly

1 Answer 165 Views
CheckedDropDownList
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 19 Mar 2017, 09:44 PM

radCheckedDropDownList,

When I set "SelectedValue" programmatically, the Check box related to this selected value is not checked properly.

I want to select item and make it checked PROGRAMMATICALLY

Note: The radCheckedDropDownList is data Binding with datasource

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 20 Mar 2017, 10:53 AM
Hello Ahmed,

First, you need to set the ValueMember property to a specific field in your data object. Then use a valid value that exists in the data source to set the SelectedValue.
 
You can directly set the text as well: 
radCheckedDropDownList1.Text = "CheckedItem 1;CheckedItem 4;";

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
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.
Tags
CheckedDropDownList
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or