Datatable Checkboxes - Select all filtered

Datatable Checkboxes - Select all filtered

nickkeehannickkeehan Posts: 2Questions: 2Answers: 0

Hi Guys.

I have a table with check boxes for selection.

When i click Select All button, it selects all results not filtered results (search: 'applied'). Any idea how i modify this code to only find myCheckboxes in the filtered range?

===============================================

addSelected: function(component, event, helper) {

    var tempIDs = [];
    var getAllId = component.find("myCheckboxes");
    for (var i = 0; i < getAllId.length; i++) {
        if (getAllId[i].get("v.value") == true) {
            tempIDs.push(getAllId[i].get("v.text"));
        }
    }
    helper.addSelectedHelper(component, event, tempIDs);
}

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.