How to remove the Check all option from RadComboBox

2 posts, 0 answers
  1. jackson
    jackson avatar
    4 posts
    Member since:
    Nov 2015

    Posted 14 Jan Link to this post

    When there is no item in RadComboBox i did't want check all option.

    <telerik:RadComboBox ID="RadComboBoxSites" runat="server"  OnClientItemChecking="OnClientItemChecking"  CheckBoxes="true"  EnableCheckAllItemsCheckBox="true" DataTextField="SiteName" DataValueField="SiteUid" AppendDataBoundItems="true" OnItemDataBound="RadComboBoxSites_ItemDataBound" DropDownWidth="250px"OnClientDropDownOpening="disableComboBoxSeparator;disableCheckall" EmptyMessage="Please select a site..." MaxHeight="192px">
  2. Eyup
    Eyup avatar
    2941 posts

    Posted 18 Jan Link to this post

    Hi Jackson,

    You can use the following approach to achieve this requirement:
    protected void RadComboBox1_DataBound(object sender, EventArgs e)
        RadComboBox combo = sender as RadComboBox;
        combo.EnableCheckAllItemsCheckBox = combo.Items.Count > 0;

    Hope this helps.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top