Angularjs with Datatable
Angularjs with Datatable
I populated data in datatable using render() . In my datatable one column is input type field so Its editable.While submit these datatable data to some REST services it should pick the edited data as well. As part of datatable data .But the issue is I am not able to find a solution that how I will fetch the each row of datatable with the edited values in it for the POST services.
datatable dynamically populated column code :
vm.dataTableInstance = $('.datatable-basic').DataTable({
data : userList,
columns : [
{ data: 'fname', title : 'First name', width: '10%' },
{ data: 'lname', title : 'Last Name', width: '5%' },
{ data: null, title : 'User Type', width: '5%',render:function(data,type,row){
return '<select data-placeholder="Select a type" id="userTypeSelect" class="select" ><option>'+userTypeList+'</option></select>';
}}
],
order: [0, "asc"],
bPaginate : false,
rowReorder: {
selector: 'td:nth-child(2)'
},
});
Answers
Please don't post duplicate discussions. Please post a link to a test case showing the issue.
The forum rules are fairly simple .
Allan