Radcombobox with checkboxes

3 posts, 0 answers
  1. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jun 2011

    Posted 09 Jan 2012 Link to this post

    I'm trying to implement a radcombobox with checkboxes for multiselection. I'm using an ItemTemplate with an asp:CheckBox.

    The data is populated fine but the functionality I'm trying to acheive is:

    -The user should be able to select multiple values while the drop down is open, and then as soon as the drop down closes a postback to the server should happen where I have an event handler to handle the newly selected/deselected check boxes. Right now I set autopost back to true on the check box and it posts back every time there is an individual a check change. How do I fix this so it happens only when the drop down closes? (And not a client side side event, I want server side).

    -Also the user should not be able to select an item in the combobox. The user should be able to check the check boxes on and off but not select a value. How do I fix this? Or if the user does select a value then the check mark should toggle on and off, not set the text of the combo box to the single selected value. (The text value should be ALL checked boxes, not just 1)

  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 10 Jan 2012 Link to this post

    Hello Ryan,

    If you're using the latest version of the RadControls, then you should use the built-in checkbox feature.

    Checkbox feature demo: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx

    Otherwise, if you're using a version that doesn't have this feature you implement code similar to this online demo. You'll need to refer to the code used by the Type drop-down.

    Checkbox template demo: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

    I hope that helps.
  3. DevCraft R3 2016 release webinar banner
  4. Nahwin
    Nahwin avatar
    22 posts
    Member since:
    Dec 2012

    Posted 13 Aug 2013 Link to this post

    Hi Kevin,

    that is nice example but the main issue is that the "itemChecked" event kept fired each time individual item got checked/unchecked we need some event that can be triggered after user finished selecting item (something like radcombobox lost focus, drop down closed, etc)

    you can just ignore the selected value option and only hangled the "RadComboBox.CheckedItems"
Back to Top