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

2 posts, 0 answers
  1. Ahmed
    Ahmed avatar
    18 posts
    Member since:
    Dec 2015

    Posted 19 Mar Link to this post

    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

  2. Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 20 Mar Link to this post

    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.
Back to Top