Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ComboBox > Combo Box CheckedItems Text problem

Not answered Combo Box CheckedItems Text problem

Feed from this thread
  • Amjad avatar

    Posted on Feb 9, 2012 (permalink)

    Dears;

    am having an issue on the combobox checkbox property;

    the control syntax is:

    <rad:RadComboBox ID="lstCustomrs" runat="server" Width="300px" CheckBoxes="true"
     
     EnableCheckAllItemsCheckBox="true" Localization-AllItemsCheckedString="All Customers"
    EmptyMessage="Select Customer">
     
    </rad:RadComboBox>

    All Items are checked by default:

    Private Sub lstCustomers_ItemDataBound(sender As Object, e As Telerik.Web.UI.RadComboBoxItemEventArgs) Handles lstCustoemrss.ItemDataBound
     
        e.Item.Checked = True
     
    End Sub

    The Scenario is:

    1. when i enter my page all items are checked by default
    2. then when i uncheck "check all" check box then choose a single item.
    3. then i go out of the control
    4. then i check anther checkbox item the checkbox items text still show the last single item that i have choosed.

    Can you please advise



    Reply

  • Posted on Feb 10, 2012 (permalink)

    Hello,

    Try the following javascript.
    JS:
    <script type="text/javascript">
     function OnClientItemChecking(sender, args)
      {
       sender.get_checkedItems()[0].set_checked(false);
      }
    </script>

    Thanks,
    Princy.

    Reply

  • Amjad avatar

    Posted on Feb 11, 2012 (permalink)

    Thanks Princy but this not what i was asking for

    when i check multiple items then check one item then anther item the display text shows that you have choosed one item instead of comma separated multiple item i dont know if this is a bug in the control or what ?

    thanks

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ComboBox > Combo Box CheckedItems Text problem
Related resources for "Combo Box CheckedItems Text problem"

ASP.NET ComboBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]