Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ToolBar > OnButtonClick event causes website to not work

Not answered OnButtonClick event causes website to not work

Feed from this thread
  • Billy Rawls avatar

    Posted on Jan 27, 2012 (permalink)

    I have a RadToolBar that I want to have use the OnButtonClick event. As soon as I set it, the whole associated RadGrid won't load. Any ideas?

    <CommandItemTemplate>
                <telerik:RadToolBar ID="RadToolBar1" runat="server" OnButtonClick="RadToolBar1_OnButtonClick" >
                    <Items>
                        <telerik:RadToolBarButton Text="Download"
                                CommandName="Download" Visible="true">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton Text="View" CommandName="View"
                                 Visible="true">
                        </telerik:RadToolBarButton>
                    </Items>
                </telerik:RadToolBar>
    </CommandItemTemplate>

    Reply

  • Kate Kate admin's avatar

    Posted on Jan 31, 2012 (permalink)

    Hello Billy,

    From the code provided it is not clear why you encounter this behavior of the RadGrid control. However, I would suggest that you take a look at this on-line demo that exemplifies how to use RadToolBar as a custom RadGrid Command item container.

    Regards,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

    Reply

  • Billy Rawls avatar

    Posted on Feb 1, 2012 (permalink)

    I apologize for not responding earlier. The problem was entirely on my end. I had the event handler for the OnButtonClick event set to private, not protected. Thanks.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ToolBar > OnButtonClick event causes website to not work
Related resources for "OnButtonClick event causes website to not work"

[   ASP.NET ToolBar Features  |  Documentation  |  Demos  |  Telerik TV   |   Self-Paced Trainer   |  Step-by-step Tutorial  ]