Changing the "All Items Checked" Text

11 posts, 1 answers
  1. Brian
    Brian avatar
    13 posts
    Member since:
    May 2013

    Posted 12 Jun 2013 Link to this post

    Currently, the RadComboBox displays a comma delimited list of checked items until all of the items are checked, at which point it displays "All items checked".  Would it be possible to get it to continue displaying the comma delimited list instead of that message when all of the items are checked?
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Jun 2013 Link to this post

    Hi,

    Try setting  CheckedItemsTexts as "DisplayAllInInput" .
    ASPX:
    <telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" CheckedItemsTexts="DisplayAllInInput">
     <Items>
      <telerik:RadComboBoxItem Text="a" Value="a" />
      <telerik:RadComboBoxItem Text="b" Value="b" />
      <telerik:RadComboBoxItem Text="c" Value="c" />
      <telerik:RadComboBoxItem Text="d" Value="d" />
      <telerik:RadComboBoxItem Text="e" Value="e" />
     </Items>
    </telerik:RadComboBox>

    Thanks,
    Shinu.
  3. Brian
    Brian avatar
    13 posts
    Member since:
    May 2013

    Posted 18 Jun 2013 Link to this post

    That worked.  Thank you!
  4. Saktheeswaran
    Saktheeswaran avatar
    7 posts
    Member since:
    Feb 2014

    Posted 03 Sep 2014 Link to this post

    Hi All,

    How to change "All Items Checked" to "所有物品托運". (English to Chinese or French). programmatically.

    Thanks Advance
  5. David
    David avatar
    291 posts
    Member since:
    Mar 2014

    Posted 11 Feb 2016 Link to this post

    I would like to resurrect this question.

    How to change "All items checked" to for example "All years selected"?

    Thank you

  6. Eyup
    Admin
    Eyup avatar
    3919 posts

    Posted 16 Feb 2016 Link to this post

    Hi David,

    You can achieve this requirement using the following configuration:
    <telerik:RadComboBox ... >
        <Localization CheckAllString="Select All Years"
            AllItemsCheckedString="All years selected" />

    Hope this helps. Please give it a try and let me know if it works for you.

    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
  7. David
    David avatar
    291 posts
    Member since:
    Mar 2014

    Posted 16 Feb 2016 in reply to Eyup Link to this post

    Yes it does!!!

    Thank you

  8. Nitin
    Nitin avatar
    1 posts
    Member since:
    Sep 2016

    Posted 08 Sep 2016 Link to this post

    Hi I have separate Check Box which is not in item list  onclick like to show "All items checked"

    Using Jquery 

     

    <telerik:RadComboBox ID="cbTiming" CheckBoxes="true" runat="server" Width="300px"
                                                            OnSelectedIndexChanged="cbTiming_SelectedIndexChanged" AutoPostBack="true" EmptyMessage="Select Days"
                                                            HighlightTemplatedItems="true" CssClass="cbcss" DropDownCssClass="cblist">
                                                            <Items>
                                                                <telerik:RadComboBoxItem Text="Monday" Value="1" />
                                                                <telerik:RadComboBoxItem Text="Tuesday" Value="2" />
                                                                <telerik:RadComboBoxItem Text="Wednesday" Value="3" />
                                                                <telerik:RadComboBoxItem Text="Thursday" Value="4" />
                                                                <telerik:RadComboBoxItem Text="Friday" Value="5" />
                                                                <telerik:RadComboBoxItem Text="Saturday" Value="6" />
                                                                <telerik:RadComboBoxItem Text="Sunday" Value="7" />
                                                            </Items>
                                                        </telerik:RadComboBox>

     

  9. Nencho
    Admin
    Nencho avatar
    1838 posts

    Posted 13 Sep 2016 Link to this post

    Hello Nitin,

    You can use the checkchanged event of the CheckBox, in order to loop trough the items collection and check them all. Hence, the CheckAllItems will be displayed. In the attachment you can find a sample example, demonstrating the above suggestion.

    Regards,
    Nencho
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  10. Steve Batten
    Steve Batten avatar
    8 posts
    Member since:
    Jan 2010

    Posted 03 Sep 2018 in reply to Nencho Link to this post

    Hi,

    How should we show or hide Checkbox in radCheckedListBox programatically,I want to show multi select to some users and single select to others according to conditions,

    Thanks in Advance

  11. Vessy
    Admin
    Vessy avatar
    2130 posts

    Posted 06 Sep 2018 Link to this post

    Hi Brian,

    You can show/hide the desired ComboBoxItems depending on the curent user type in a similar way:
    protected void Page_Load(object sender, EventArgs e)
    {
        string user = "Guest";
     
        if (user != "Admin")
        {
            foreach (RadComboBoxItem item in RadComboBox1.Items)
            {
                if (item.Value == "1" || item.Value == "2")
                {
                    item.Visible = true;
                }
                else
                {
                    item.Visible = false;
                }
            }
        }
    }


    Another possible option is to show/hide the checkbox of an item on the client-side like demonstrated here
    https://www.telerik.com/forums/how-to-disable-and-hide-a-single-checkbox

    Regards,
    Vessy
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top