Fire RadGrid ItemCommand on Radwindow close

4 posts, 0 answers
  1. Rishi
    Rishi avatar
    43 posts
    Member since:
    Feb 2010

    Posted 23 Jul 2015 Link to this post

    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.

  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1085 posts

    Posted 28 Jul 2015 Link to this post

    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
  3. Rishi
    Rishi avatar
    43 posts
    Member since:
    Feb 2010

    Posted 03 Aug 2015 in reply to Angel Petrov Link to this post

    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.
  4. Angel Petrov
    Admin
    Angel Petrov avatar
    1085 posts

    Posted 06 Aug 2015 Link to this post

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