.rsHeader
{
z-index
:
1000
;
}
<
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);
}
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);
}
}
This is an existing VS2002 project using ComponentArt menu for page navigation. Currently menu items are attached to the client side event for page
validation. Upon the page submit, the control is directed to client side script for page validation. On successful page validation, the control is passed
onto server side script for saving the data.
This control is not supported in VS2012 enviornment, so we are in process of upgrading the control with RadMenu control.
Currently the ComponentArt menu control is placed inside Header page(user control) and this page is inherited in all other pages using base page concept
to render the menu.
We are having issue using RadMenu control in the same fashion.
The issue is when we associated custom client side script to RadMenu item, the control is going to custom Client side script as intended for the validation,
but after the validation it is going back to RadMenu built-in client side event (OnClientItemClicked) again for client side click rather than passing the
clontrol to RadMenu Server side click event OnItemClick="RadMenu1_ItemClick.
Issue is, if the custom client side validation fails, we want to stop there itself rather going back to built-in client side for further validation.
Is it possible to stop the control going to radMenu built-in validation, if the custom client side validation fails ?