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

checkbox listbox

1 Answer 136 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 2
Edward asked on 16 Apr 2012, 12:50 PM
Hi

I want to have a checkbox listbox in my vistor dataForm. This checkbox lists the characteristics of a visitor. The checkbox list is a collection of values.

How can I:

- add such a control to the DataForm 

For a drop down, this works.
if (e.PropertyName == CountryID"
{
    e.DataField = new DataFormComboBoxField()
                {
                    ItemsSource = this.GetCountries(),
                    SelectedValuePath = "ID",
                    DisplayMemberPath = "Name",
                    DataMemberBinding = new Binding("CountryID") { Mode = BindingMode.TwoWay }
                };
}


- Where and how can I read those checked values out?


Hope you can help!

1 Answer, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 16 Apr 2012, 01:03 PM
Hi Edward,

You need to define style for RadComboBox and modify its ItemTemplate. Please refer to this forum thread for a reference. Once you create the style, you can set it to the data field you want.   

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DataForm
Asked by
Edward
Top achievements
Rank 2
Answers by
Maya
Telerik team
Share this question
or