I WOULD LIKE TO KNOW HOW TO GET THE IDUnidadMeasure AFTER I HAVE SELECTED A ROW IN MY DATATABLE. TH

I WOULD LIKE TO KNOW HOW TO GET THE IDUnidadMeasure AFTER I HAVE SELECTED A ROW IN MY DATATABLE. TH

lesterdiaz17lesterdiaz17 Posts: 2Questions: 2Answers: 0

var dataTable;
$(document).ready(function () {

dataTable = $("#UMTable").DataTable({

    "ajax": {
        "url": "/MeasuredUnits/GetMeasured",
        "type": "GET",
        "datatype": "json"
    },
    "columns": [
        {
            "data": "IDUnidadMedida",
            "className": "text-center",

        },
        {
            "data": "Descripcion",
            "className": "text-center text-uppercase"
        }

    ],
    "select": {
        "style": 'single'
    }

});

dataTable.ajax.reload();

});

Answers

This discussion has been closed.