CheckBox in ComboBox

4 posts, 0 answers
  1. DK
    DK avatar
    72 posts
    Member since:
    Jun 2009

    Posted 05 Aug 2009 Link to this post

    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.

  2. Yana
    Admin
    Yana avatar
    4314 posts
    Member since:
    Sep 2012

    Posted 10 Aug 2009 Link to this post

    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.

  3. Ted
    Ted avatar
    47 posts
    Member since:
    Jan 2008

    Posted 23 Dec 2009 Link to this post

    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

  4. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1548 posts
    Member since:
    Sep 2012

    Posted 25 Dec 2009 Link to this post

    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.

Back to Top