Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
12004
Onclick Event for Infragistics toolbar button
posted
I am trying to add click event for button component TBarButton, i.e calling a Server side method on the button click. Is it workable?
  • 12004
    posted
    For handling the click event on the server side for the UltraWebToolbar you can use the following code in the page load:



    protected void Page_Load(object sender, EventArgs e)
    {
       UltraWebToolbar1.ButtonClicked +=
    new Infragistics.WebUI.UltraWebToolbar.UltraWebToolbar.ButtonClickedEventHandler(UltraWebToolbar1_ButtonClicked);
    }


    void UltraWebToolbar1_ButtonClicked(object sender, Infragistics.WebUI.UltraWebToolbar.ButtonEvent be)
    {



    }


    This will allow the ButtonClicked event to be handled by the method name "UltraWebToolbar1_ButtonClicked".