KaxMenuOnClientItemPopulationFailed Property |
Namespace: Kettic.AspNet.Controls
If specified, the OnClientItemPopulationFailed client-side event handler is called when the operation to populate the children of a menu item has failed. Two parameters are passed to the handler:
This event can be cancelled.
<script type="text/javascript">
function onClientItemPopulationFailedHandler(sender, eventArgs)
{
var item = eventArgs.get_item();
var errorMessage = eventArgs.get_errorMessage();
alert("Error: " + errorMessage);
eventArgs.set_cancel(true);
}
</script>
<kettic:KaxMenu ID="KaxMenu1"
runat="server"
OnClientItemPopulationFailed="onClientItemPopulationFailedHandler">
....
</kettic:KaxMenu>