Hi Yazid,
In order to achieve your scenario one suggestion is try to attach the
OnClientItemChecking event of RadComboBox and try the below JavaScript.
function
selectAll(sender, args) {
var
index, count;
count = sender.get_items().get_count();
if
(args._item._text ==
"Select All"
) {
for
(index = 1; index < count; index++) {
sender.get_items()._array[index].check();
}
args.set_cancel(
true
);
sender.set_text(
"All"
);
}
}
Another suggestion is that you can upgrade the Telerik version and change the "
Check All" string value using the RadComboBox
Localization. Please take a look into this
online demo.
Thanks,
Princy.