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
455
Extend TBarButton and add some javascript event handlers
posted

I want to extend the Infragistics.WebUI.UltraWebToolbar.TBarButton to make my own toolbar button with some repeating code foreach form in my application.

The button will be use to display a help topic by the actual form that the user edit.

For so far I have implemented the contructor to set the default properties, I have a toolbar with my own button implentation. Now I want to set the client side events onmouseover and onmouseout. How can I set these properties?

My class that extends the TBarButton

    public class HelpInfoToolbarButton : Infragistics.WebUI.UltraWebToolbar.TBarButton

    {

        public string SomeExtraFields { get; set; }

 

        public HelpInfoToolbarButton()

        {

            this.Image = "~/Images/Help.png";

            this.Text = "Help";

            this.ToolTip = "Displays the help topic";

        }

    }

 

My aspx code to use my button

    <igtbar:UltraWebToolbar ID="uwtToolbar" runat="server">

        <Items>

            <ext2:HelpInfoToolbarButton HelpNaam="HelpInfoToolbarButton">

            </ext2:HelpInfoToolbarButton>

        </Items>

    </igtbar:UltraWebToolbar>

 

How can I set the javascript properties onmouseover and onmouseout? How can I get the toolbar instance. In the constructor the property Parent is null.