How to fire command event in the RadGrid in ASPX From RadGrid in UserControl

2 posts, 0 answers
  1. Chi Ming
    Chi Ming avatar
    13 posts
    Member since:
    Apr 2013

    Posted 21 Jun 2013 Link to this post

    HI everyone,

    How does it fire command events in the RadGrid from User Control with other RadGrid? 

    Once the user click a button from the radgrid in the usercontrol, it should fire the command event directly in the radgrid in aspx. 

    Chi Ming
  2. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 24 Jun 2013 Link to this post

    Hi Chi Ming,

    In order to execute a method in an ASPX CodeBehind from a User Control, you should expose the event on the User Control, then hook it to the event on your CodeBehind page.

    In the User Control
    public event EventHandler ButtonClickedEvent;

    In the CodeBehind
    UserControl.ButtonClickedEvent += methodOnCodeBehind_Click;

Back to Top