KaxTreeViewOnClientNodePopulationFailed Property |
Namespace: Kettic.AspNet.Controls
If specified, the OnClientNodePopulationFailed client-side event handler is called when the operation to populate the children of a tree node has failed. Two parameters are passed to the handler:
This event cannot be cancelled.
<script type="text/javascript">
function onClientNodePopulationFailedHandler(sender, eventArgs)
{
var node = eventArgs.get_node();
var errorMessage = eventArgs.get_errorMessage();
alert("Error: " + errorMessage);
eventArgs.set_cancel(true);
}
</script>
<kettic:KaxTreeView ID="KaxTreeView1"
runat="server"
OnClientNodePopulationFailed="onClientNodePopulationFailedHandler">
....
</kettic:KaxTreeView>