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
590
Facing issue while retrieving the filtered rows.
posted

Hi

I want a small clarification on one of the use case related to IgrDataGrid (https://es.infragistics.com/products/ignite-ui-react/react/components/grids/data-grid/overview).

When we apply filter on any column then we want to retrieve the rows which are visible on the grid, so is there any way to get the filtered rows.

So, for this I need to know how can we achieve that , If there is any solution for this please suggest  as I need to implement this in my IgrDataGrid.   

Hoping for a positive response.

Thanks!!!

  • 29065
    Offline posted

    Hello and thank you for contacting Infragistics. You may use the grid's actualDataSource property to retrieve the viewable records on screen at given time. This will update every time a filter is applied, modified etc.

    eg.

    this.grid.actualDataSource.
     
    From here you can get items by index to retrieve certain values based on properties in your array the grid is bound ot. 
     
    eg.
    Retreive the first name from first row.
    (this.grid.actualDataSource.getItemAtIndex(0).FirstName)
     
    Let me know if you have any questions.