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">
    </telerik:RadComboBox>
  2. Eyup
    Admin
    Eyup avatar
    3005 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.

    Regards,
    Eyup
    Telerik
    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. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top