KaxToolBarOnClientCheckedStateChanged Property |
Namespace: Kettic.AspNet.Controls
Use the OnClientCheckedStateChanged property to specify a JavaScript function that will be executed after a toolbar dropdown button is checked - either by left-clicking a checkable button or pressing the ENTER key after tabbing to that button.
Two parameters are passed to the handler
<script language="javascript">
function clientCheckedStateChanged(sender, eventArgs)
{
var toolBar = sender;
var button = eventArgs.get_item();
alert(String.format("You just changed the checked state of the '{0}' button in the '{1}' toolBar.",
button.get_text(), toolBar.get_id()));
}
</script>
<kettic:KaxToolBar id="KaxToolBar1" runat="server"
OnClientCheckedStateChanged="clientCheckedStateChanged">
<Items>
<kettic:KaxToolBarButton Text="Left" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Center" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Right" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
<kettic:KaxToolBarDropDown Text="Align">
<Buttons>
<kettic:KaxToolBarButton Text="Left" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Center" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Right" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
</Buttons>
</kettic:KaxToolBarDropDown>
<kettic:KaxToolBarSplitButton Text="Reset">
<Buttons>
<kettic:KaxToolBarButton Text="Left" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Center" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
<kettic:KaxToolBarButton Text="Right" CheckOnClick="true" Group="Align" ></kettic:KaxToolBarButton>
</Buttons>
</kettic:KaxToolBarSplitButton>
</Items>
</kettic:KaxToolBar>