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
210
how to get columnID and rowID of a cell has just clicked?
posted

Hi,

I'm interacting with iggrid jquery, and I have a question about it.

When click on a cell in grid table, how to get both columnID and rowID of this?

Now, I'm using `iggridselectionactiverowchanged` but can only get rowID.

Thank in advance.

Parents
No Data
Reply
  • 960
    Verified Answer
    Offline posted

    Hello Duong,

    Thank you for contacting Infrsgistics Developer Support.

    In order to get row id and column id of a clicked cell, you could use cellClick event of igGrid.

        cellClick event
        http://www.igniteui.com/help/api/2016.2/ui.iggrid#events:cellClick

        $("#grid1").igGrid({
            cellClick: function(evt, ui) {
                console.log("rowKey=" + ui.rowKey + ", colKey=" + ui.colKey);
            }
        });

    I hope this will help.


    Best Regards,

    Noriko I.
    Developer Support Engineer
    Infragistics, Inc.

Children