10 Answers, 1 is accepted
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.
How to change "All Items Checked" to "所有物品托運". (English to Chinese or French). programmatically.
Thanks Advance
I would like to resurrect this question.
How to change "All items checked" to for example "All years selected"?
Thank you
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
Yes it does!!!
Thank you
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>
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
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
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