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

Fire RadGrid ItemCommand on Radwindow close

3 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rishi
Top achievements
Rank 1
Rishi asked on 23 Jul 2015, 02:22 PM

Hi 

I am trying to perform the following but am stuck at one point and need some help to move forward - There is a template grid column with a link button that is associated with a custom command. Now on the client click of the link button we want to open up a radwindow to collect user comments & confirm the action.

So on the radwindow close the custom command on that grid row should be fired. How can I get the ​linkbutton that has triggered the radwindow open in the RadWindow Close event and do a post back on that link button for that row to fire the custom command.

 

Any info would be much appreciated.

 

Thanks.

3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 28 Jul 2015, 10:26 AM
Hi,

Actually there is no need to use the same button to initiate a postback. Since you want to fire a command you can call the fireCommand method of the MasterTableView. It should trigger a postback and raise the server OnItemCommand event where you can perform additional logic if needed.

Regards,
Angel Petrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Rishi
Top achievements
Rank 1
answered on 03 Aug 2015, 02:38 PM
Yes it fires but in the command event handler i am getting the triggered item as the first row in the grid. Its always posing back on the first item in the grid irrespective on which row i clicked the button.
0
Angel Petrov
Telerik team
answered on 06 Aug 2015, 07:30 AM
Hello,

In order to determine why are you experiencing such behavior I would kindly like to ask you to share with us the markup and code-behind of the page so we could examine the implementation. Once we have a better understanding over the exact setup we should be able to provide you with a precise answer.

Regards,
Angel Petrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Rishi
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Rishi
Top achievements
Rank 1
Share this question
or