This is a migrated thread and some comments may be shown as answers.

Changing the "All Items Checked" Text

10 Answers 1223 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 12 Jun 2013, 03:44 PM
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?

10 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 13 Jun 2013, 04:59 AM
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.
0
Brian
Top achievements
Rank 1
answered on 18 Jun 2013, 09:09 PM
That worked.  Thank you!
0
Saktheeswaran
Top achievements
Rank 1
answered on 03 Sep 2014, 04:24 PM
Hi All,

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

Thanks Advance
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 11 Feb 2016, 07:38 PM

I would like to resurrect this question.

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

Thank you

0
Eyup
Telerik team
answered on 16 Feb 2016, 08:09 AM
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
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 16 Feb 2016, 05:56 PM

Yes it does!!!

Thank you

0
Nitin
Top achievements
Rank 1
answered on 08 Sep 2016, 02:36 PM

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>

 

0
Nencho
Telerik team
answered on 13 Sep 2016, 08:22 AM
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.
0
Steve Batten
Top achievements
Rank 1
answered on 03 Sep 2018, 10:27 AM

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

0
Vessy
Telerik team
answered on 06 Sep 2018, 08:05 AM
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.
Tags
ComboBox
Asked by
Brian
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Brian
Top achievements
Rank 1
Saktheeswaran
Top achievements
Rank 1
David
Top achievements
Rank 1
Iron
Iron
Veteran
Eyup
Telerik team
Nitin
Top achievements
Rank 1
Nencho
Telerik team
Steve Batten
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or