asp.net - Disable/enable clientside all checkboxes in a Telerik RadTreeView -


i need disable checkboxes have in telerik radtree. how achieve that?

trick is, these not html controls seem imitating these via images, css , javascript. instance, html radtreeview node looks like:

  <div class="rtmid">   <span class="rtsp"></span>   <span class="rtminus"></span>   <span class="rtunchecked"></span>   <span class="rtin">item text</span>   </div>  

best, askar

simply redefine onclick javascript event doesn't fire.

this supposed work in every browser:

onclickevent = "if (event.cancelable) {event.preventdefault();}else {event.returnvalue = false;} return false;"; 

this think best cross-browser solution:

onclickevent = "this.checked = !this.checked;"; 

Comments