Click or drag to resize
KaxToolBarOnClientLoad Property
Gets or sets the name of the javascript function called when the control is fully initialized on the client side.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string OnClientLoad { get; set; }

Property Value

Type: String
A string specifying the name of the javascript function called when the control is fully initialized on the client side. The default value is empty string.
Remarks

Use the OnClientLoad property to specify a JavaScript function that is executed after the control is initialized on the client side. A single parameter is passed to the handler, which is the client-side KaxToolBar object.

Examples
The following example demonstrates how to use the OnClientLoad property.

<script language="javascript">
function onClientToolBarLoad(toolBar, eventArgs)
{
alert(toolBar.get_id() + " is loaded.");
}
</script>

<kettic:KaxToolBar id="KaxToolBar1" runat="server" OnClientButtonClicking="onButtonClicking">
<Items>
<kettic:KaxToolBarButton Text="Save"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Load"></kettic:KaxToolBarButton>
<kettic:KaxToolBarDropDown Text="Align">
<Buttons>
<kettic:KaxToolBarButton Text="Left"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Center"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Right"></kettic:KaxToolBarButton>
</Buttons>
</kettic:KaxToolBarDropDown>
<kettic:KaxToolBarSplitButton Text="Apply Color (Red)">
<Buttons>
<kettic:KaxToolBarButton Text="Red"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Yellow"></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Blue"></kettic:KaxToolBarButton>
</Buttons>
</kettic:KaxToolBarSplitButton>
</Items>
</kettic:KaxToolBar>

See Also