EmptyMessage doesn't show when CheckBoxes is set to true

3 posts, 1 answers
  1. Evgeniya
    Evgeniya avatar
    6 posts
    Member since:
    Sep 2015

    Posted 21 Jan 2016 Link to this post



    I am using version 2014.3.1209.40 and I have the following combo box:

    <telerik:RadComboBox ID="ddCostCenter" runat="server" CheckBoxes="true"  EmptyMessage="Select Cost Center" > </telerik:RadComboBox>

    If I remove CheckBoxes="true" the empty message shows on initial load, otherwise it doesn't.

    How should I set it up, so EmptyMessage shows on initial load when I have the checkboxes?



  2. Evgeniya
    Evgeniya avatar
    6 posts
    Member since:
    Sep 2015

    Posted 21 Jan 2016 in reply to Evgeniya Link to this post

    This behaviour goes away if I specify CheckedItemsTexts="DisplayAllInInput" but I don't want to do that.

     Also, how should I replace the message "All items checked"when all items are checked with my message?


  3. Answer
    Ivan Danchev
    Ivan Danchev avatar
    1304 posts

    Posted 26 Jan 2016 Link to this post

    Hello Evgeniya,

    The missing empty message on load, when check boxes are enabled, was a bug in the 2014 version of the controls and is not present in the latest official version. If you are using the old version a possible workaround would be to set the empty message in the ComboBox' OnClientLoad client-side event handler as demonstrated below:
        function OnClientLoad(sender) {
            sender.set_emptyMessage("Select an Item");
        <telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" EmptyMessage="Select an Item"
            EnableCheckAllItemsCheckBox="true" OnClientLoad="OnClientLoad">
            <Localization AllItemsCheckedString="My custom message" />

    The code snippet also answers your second question showing how you can change the default "All items checked" string.

    Ivan Danchev
    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
Back to Top