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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -