Selected Row ids

Selected Row ids

goktuginal41@gmail.comgoktuginal41@gmail.com Posts: 57Questions: 22Answers: 0

Hello everyone,

I make search and display only rows with 'yes' value from 'flag' column on datatable. And I want to edit all of these values as 'no'. For this, I need the ids of the rows in the selected column. With rows().ids() I get the ids of all the rows(includes 'yes' and 'no' values of flag column) in the datatable, but I only want to get the ids of the rows with the 'yes' value I've searched for. My search and select column code works fine. Do you have any idea? Thank in advance.

var test = [ ]
var test = table.rows().ids().toArray();
console.log(test.length);

**OUTPUT : 7

Output should have been 5 :/**

Before search:

After seach:

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.