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
265
Is iggrid provides api for getting selected row data?
posted

I can get a selected row like this :

var row = $('.selector').igGrid('selectedRow');

But I can't find some APIs to get selected row data. 
I wonder if IgGrid provides that API like JqGrid does ?

Thanks very much for any helpful information.
Parents
No Data
Reply
  • 24671
    posted

    hey,

    The row object has an index property which will give you the index of the selected row in the current data view. You can retrieve the data object easily with the following code:

    $('.selector').data('igGrid').dataSource.dataView()[row.index];

    Hope it helps. Thanks,

    Angel 

Children