This is a migrated thread and some comments may be shown as answers.

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

1 Answer 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chi Ming
Top achievements
Rank 1
Chi Ming asked on 21 Jun 2013, 07:14 PM
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. 

Thanks,
Chi Ming

1 Answer, 1 is accepted

Sort by
0
msigman
Top achievements
Rank 2
answered on 24 Jun 2013, 03:20 PM
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;


Thanks,
Matt
Tags
General Discussions
Asked by
Chi Ming
Top achievements
Rank 1
Answers by
msigman
Top achievements
Rank 2
Share this question
or