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
60
Get cell value of selected row in IgGRID and how to iterate to selected row parents and also get their cell value.
posted
Code: car rows = $("#grid1").igGridSelection("selectedRows"); $.each(rows, function (ix, el) { //TODO 1)How do i get row cells value.For exampe if row contain three columns.how do i get the column no 2 value. 2)Secondly i need to iterate to parents of selected row and get the same like parent row column no 2 value. }); How do i accomaplish this task.
Parents
No Data
Reply
  • 23953
    Offline posted

    Hello N S,

    Thank you for posting in the community.

    You can get the cell value by using igGrid.getCellValue  or igGrid.getCellText API methods.
    Attached you can find sample which demonstrates getting a selected row cell value.
    I wanted to ask you what you meant by parent rows? igGrid has flat structure and there is no parent row of the selected row. Are you referring to igHierarchicalGrid?

    Best regards,
    Martin Pavlov
    Infragistics, Inc.
    support@infragistics.com

    igGridSelection_selectedRows.zip
Children