Datatable :
"columns": [
{ "data": "SupplierId", "name": "SupplierId" },
{ "data": "SupplierPIPCode", "name": "SupplierPIPCode" },
{ "data": "SupplierName", "name": "SupplierName" },
{
"render": function (data, type, row, meta) {
{
"render": function (data, type, row, meta) {
var a = '<a class="action-style"></a><a class="action-style"></a><a>';
return a;
}, "orderable": false
}
],
function deleteDrugMapping(supplierDrugId, SupplierId, SupplierName) {
$("#SupplierDrugMapDeleteDialog").dialog({
resizable: false,
height: 220,
width: 475,
modal: true,
buttons: {
"Yes": function () {
debugger;
$(this).dialog("close");
return false;
},
"No": function () {
$(this).dialog("close");
}
}
});
What I have tried:
The above code first dynamically creates button onclick event where javascript function "deleteDrugMapping" is called .
Inside "deleteDrugMapping()" dialog box is opened where on Yes button click i get this error , "Uncaught RangeError: Maximum call stack size exceeded."
Error appears as soon as i click Yes button before any further execution of code.
Please help.