Hi
Can anyone throw some light on the following:
I need to add a tool bar that is visible across all the pages in the web site .. so I created a user control(.ascx file) with only a rad toolbar and all its items and added to the master page.
Questions:
1. Is there a way to enable and disable the items in the tool bar depending on some settings or values on the content pages.
2. I have items like print,save,back etc can I have client side java script functions do the handling for me? right now this is how i am doing it:
protected void RadToolBar1_ButtonClick(object sender, Telerik.Web.UI.RadToolBarEventArgs e)
{
if (e.Item.Value == "Back")
{
Response.Write("<script type='text/javascript'>history.go(-1);</script>"); -- This isn't working though
}
if (e.Item.Value == "Print")
{
Response.Write("<script type='text/javascript'>window.print();</script>");
}
}
I appreciate any help.
Thanks