Skip to content

Infragistics Community Forum / Web / Ignite UI for jQuery / Loop through all rows in an igGrid

Loop through all rows in an igGrid

New Discussion
Dan
Dan asked on Apr 23, 2015 8:21 AM

How do I loop through all rows in an igGrid and extract the cell values?

Sign In to post a reply

Replies

  • 0
    [Infragistics] Michael H.
    [Infragistics] Michael H. answered on Feb 14, 2014 9:49 PM

    Hi dtwilliams,

     

    Thanks for posting in our forums!

    There are several methods to get the data from the igGrid's rows/cells.  Depending on what exactly you need, you can access all the data directly through the grid's datasource.  You can access the grid's datasource with the following code which can be looped through:

    var ds = $("#grid1").igGrid("option", "dataSource");

    If you need only the rows that are being filtered or on a current page, you can get the rows and reference their row id (primary key) with the following code:

    $grid.igGrid("getCellValue", rowId, "Name")

    You can find more information on the various methods and options for the igGrid in our API documentation here:

    http://help.infragistics.com/jQuery/2013.2/ui.iggrid#methods

    Please see the attached sample that demonstrates these two methods.  If you have any questions or concerns with this, please let me know and I will be glad to help.

    • 0
      [Infragistics] Michael H.
      [Infragistics] Michael H. answered on Feb 21, 2014 7:24 PM

      Hello dtwilliams,

       

      Please let me know if you still need help with this issue.

      • 0
        Cuong Tran
        Cuong Tran answered on Apr 23, 2015 8:21 AM

        thanks you very much. it is very helpful

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Dan
Favorites
0
Replies
3
Created On
Apr 23, 2015
Last Post
10 years, 11 months ago

Suggested Discussions

Tags

Created by

Dan

Created on

Apr 23, 2015 8:21 AM

Last activity on

Feb 18, 2026 2:03 PM