I now have a need to add a button that will print the current page, which I think would be a simple JavaScript "document.print()".
I've tried the following example copied from your documentation, just to teach myself how to connect to the client-side, which I have never learned, nor can I invest much in JavaScript.
Nothing happens, and I don't know why. I am using VS2008 on Windows Vista with IE8, all current updates, and the latest Q3 release of RAD/Ajax controls.
OOPS!, Sorry didn't notice the Format Code Block option before posting. TPG
<
script type="text/javascript"> (note VS2008 tells me a "type" is required, so I changed the script here)
function OnClientButtonClicked(sender, args) {
var button = args.get_item();
alert(button.get_text());
}
</
script>
<
telerik:RadToolBar id="RadToolBar1" runat="server" Orientation="Horizontal" OnClientButtonClicked="OnClientButtonClicked">
<CollapseAnimation Duration="200" Type="OutQuint" />
<Items>
<telerik:RadToolBarButton Text="button1" runat="server"></telerik:RadToolBarButton>
<telerik:RadToolBarDropDown Text="dropdown" runat="server">
<Buttons>
<telerik:RadToolBarButton Text="Button2" runat="server"></telerik:RadToolBarButton>
</Buttons>
</telerik:RadToolBarDropDown>
</Items>
</
telerik:RadToolBar>