Hi,
How can I uncheck checkbox from client side? I am using the control without the " Check/Uncheck All " option. I need know how I verify if the args item is checked or not.
Here is my RadListBox:
Below is my pseudo-code that show what I want to do:
How I do : if(aux.checked == false) in javascript in this case?
How can I uncheck checkbox from client side? I am using the control without the " Check/Uncheck All " option. I need know how I verify if the args item is checked or not.
Here is my RadListBox:
<telerik:RadListBox ID="rlUsers" runat="server" CheckBoxes="true" AutoPostBack="false" SelectionMode="Single" Width="300" OnItemDataBound="rlUsers_ItemDataBound" OnDataBound="rlUsers_DataBound" OnClientItemChecked="OnClientItemChecked" ></telerik:RadListBox>function OnClientItemChecked(sender, args) { var aux = args.get_item(sender); var items = sender.get_items(); items.forEach(function (itm) { itm.set_checked(false); }); aux.set_checked(true); }Below is my pseudo-code that show what I want to do:
function OnClientItemChecked(sender, args) { var aux = args.get_item(sender); if(aux.checked == false){ var items = sender.get_items(); items.forEach(function (itm) { itm.set_checked(false); }); aux.set_checked(true); } }How I do : if(aux.checked == false) in javascript in this case?