Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1817

Input field to scan barcodes to quickly select multiple rows to edit

$
0
0

Editor 1.96 being used.

I tried searching in the forums but didn't see anything on this topic yet, just wanted to check if there is an existing api for this something like this:

  1. Have an input field, where we can enter in data (in our case we will scan a barcode) to search in the first column, if there is a match, select that row.
  2. Repeat step 1, and continue to add to the selection of rows.
  3. When finished searching, we then hit edit to do whatever task is needed for all selected rows.

If it does not exist, I'll just write something up that searches in the first column based on the entered input text, if there is a match we just select the row, something similiar to this code below

$('#example tbody').on('click', 'tr', function () {
$(this).toggleClass('selected');
});

Found on this example page:
https://datatables.net/examples/api/select_row.html


Viewing all articles
Browse latest Browse all 1817

Latest Images

Trending Articles



Latest Images