back button on the tool bar

2 posts, 0 answers
  1. Rishi
    Rishi avatar
    42 posts
    Member since:
    Feb 2010

    Posted 09 Mar 2010 Link to this post


    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.


    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.

  2. Yana
    Yana avatar
    4547 posts

    Posted 11 Mar 2010 Link to this post

    Hi harisha yalamanchili,

    Regarding the first question, please check this forum post.

    I suggest you use OnClientButtonClicked event of RadToolBar to execute the javascript code.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top