Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82563

Get specific cell value using row/col index coordinates

$
0
0

Hi,
I want to read the value of a specific hidden cell, when I have the row integer index and the column integer index.
I tried many things, which I wrote below :

        // This is the syntax I thought it would work. But in fact it gets first column of all rows in an array. Odd, to say the least.
        console.log( table.rows(rowIndex).columns(colProduct).data() );
    
        // This gets the first row, with no surprise.
        console.log( table.rows(rowIndex).data() );
        
        // This gets the correct cell value that I'm looking for. However if there is a better way of doing, I would prefer using something that is better understandable.
        console.log( table.rows(rowIndex).data()[0][colProduct] );

Thanks


Viewing all articles
Browse latest Browse all 82563

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>