OnButtonClick event causes website to not work

3 posts, 1 answers
  1. Billy Rawls
    Billy Rawls avatar
    4 posts
    Member since:
    Feb 2010

    Posted 27 Jan 2012 Link to this post

    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>
  2. Answer
    Kate
    Admin
    Kate avatar
    1898 posts

    Posted 31 Jan 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Billy Rawls
    Billy Rawls avatar
    4 posts
    Member since:
    Feb 2010

    Posted 01 Feb 2012 Link to this post

    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.
Back to Top