Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Trigger iggridrowselectorsrowselectorclicked event on iggridselectionrowselectionchanged
posted

Hello, I am using ASP MVC 5 with IgniteUI 2016.2

How can I get evt.rowKey from iggridrowselectorsrowselectorclicked event but I triggered with iggridselectionrowselectionchanged event? Because I will do an action if anywhere in the row was clicked, get the keyID, and send to server using ajax.

  • 2155
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for contacting Infragistics Developer Support.

     

    The row key can be accessed by "data-id" attribute of the row.

    So in ui.igGridSelection's rowSelectionChanged event, the key of the selected row can retrieved like below.

     

        $(document).delegate("#Grid", "iggridselectionrowselectionchanged", function (evt, ui) {

            var rowKey = $(ui.row.element).attr("data-id");

        });

     

    I have attached the sample application for you.

     

    Let me know if I may be of further assistance.

     

    Thank you,

    Mihoko Kamiishi

    CASE-179431MVC.zip