RadtoolBarButton click

4 posts, 0 answers
  1. Ragupathi
    Ragupathi avatar
    41 posts
    Member since:
    Jul 2008

    Posted 23 Jul 2008 Link to this post

    I want to fire both client side and server side events on RadToolBarButton Click.Iam trying to achieve this with onbuttonclick and OnClientButtonClicked events. Is it possible?

  2. Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 24 Jul 2008 Link to this post

    Hi Ragupathi,

    Yes, this is possible. The OnClientButtonClicked property should have the name of a client-side JavaScript event handler assigned, while the OnButtonClick event should get a RadToolBarEventHandler delegate.

    Please, check the RadToolBar for ASP.NET Ajax Online Examples.

    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
  4. Asutosh
    Asutosh avatar
    130 posts
    Member since:
    Sep 2013

    Posted 14 Jun 2014 in reply to Erjan Gavalji Link to this post

    i want every button seperate click  event in tool bar
    how can i call backend event using button in radtoolbar?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Jun 2014 in reply to Asutosh Link to this post

    Hi Asutosh,

    Please try to set the CommandName for the RadToolBarButton and access it in the OnButtonClick event of  RadToolBar and write the code based on the condition as follows.

    <telerik:RadToolBar ID="rtoolbarServerButtonClick" runat="server" OnButtonClick="rtoolbarServerButtonClick_ButtonClick">
            <telerik:RadToolBarButton Text="Button1" CommandName="Click1">
            <telerik:RadToolBarButton Text="Button2" CommandName="Click2">

    protected void rtoolbarServerButtonClick_ButtonClick(object sender, Telerik.Web.UI.RadToolBarEventArgs e)
        RadToolBarButton toolbarButton = (RadToolBarButton)e.Item;
        if (toolbarButton.CommandName == "Click1")
            //your code
            //your code

Back to Top