Tree Control: Ajax onSelect Callback with a Promise

This example shows how to use a promise with ajax to allow/deny access to tree nodes.