DevExpress ASPxTreeList – Single node selection via client side JavaScript.

Using the DevExpress ASPxTreeList control recently I came across the problem of how to only allow one node checkbox to be selected at once.

There are examples on the DevExpress support site of implementing this using server side code and postbacks, however this isn’t so desirable, as incurring a postback for every time a node is clicked is fairly expensive.

I had a look into how to implement this using the ASPxClientTreeList functionality available to deselect nodes when other nodes are selected. The solution I worked out works reasonably well, with one caveat which is covered at the end.

Continue reading DevExpress ASPxTreeList – Single node selection via client side JavaScript.