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

CheckBox in ComboBox

3 Answers 104 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
DK
Top achievements
Rank 2
DK asked on 05 Aug 2009, 08:34 AM
HI
 I have  telerik radcombo box in which i have checkbox as item template.
now i have bind the radcombobox with the datasource.

i set allowcustomttext=false.
now when the combox loads the items then by default the first item is selected. and checkbox for that item is not checked.
 i want to show the empty message and when user selects the checkbox then only the text appera in the combox.

also when i select the checkbox for corresponding item and i  save it to database and then retrieve from the database then how can i show the checked item.

please help me its urgent.

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 10 Aug 2009, 08:25 AM
Hello there,

You should set AllowCustomText to true in order to have EmptyMessage. Regarding the checkboxes state, you can preserve it in the database. I've attached a simple page which shows how to do this. Please download it and give it a try.

Best regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ted
Top achievements
Rank 1
answered on 23 Dec 2009, 02:32 PM
Is there a way to not allow the user to enter custom text while using this?  I want to use checkboxes and multiselect in the combobox and have the checked items show in the text area but not allow the user to just type text in the text area of the combobox.

Ted
0
Genady Sergeev
Telerik team
answered on 25 Dec 2009, 12:56 PM
Hi Ted,

Why don't use RadListBox instead? RadListBox supports Multiselect, Checkboxes and Transfer out of the box, so the selected items can easily be transferred to a  RadListBox that holds the selected items. You can refer to this demo.

All the best,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
DK
Top achievements
Rank 2
Answers by
Yana
Telerik team
Ted
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or