Datatable on MVC popup
Datatable on MVC popup
Hi I'm trying to populate a data table contained into a popup windows using MVC, but when the JS get to the DT initialization if does not call the controller that I'm trying to get the info from.
the call of the popup windows is this: [code] window.showModalDialog('/Home/Index', 'WindowPopup', 'width=900px,height=450px') [/code]
the initialization on the view of the aspx page is this: [code]
$(document).ready(function () {
var oTable = $('#myDataTable').dataTable({
"bServerSide": true,
"sAjaxSource": "Home/AjaxHandler",
"bProcessing": true,
"aoColumns": [
{ "sName": "ID",
"bSearchable": false,
"bSortable": false,
"fnRender": function (oObj) {
return 'View';
}
},
{ "sName": "COMPANY_NAME" },
{ "sName": "ADDRESS" },
{ "sName": "TOWN" }
]
});
});
[/code]
is there something that I'm missing?
thanks
the call of the popup windows is this: [code] window.showModalDialog('/Home/Index', 'WindowPopup', 'width=900px,height=450px') [/code]
the initialization on the view of the aspx page is this: [code]
$(document).ready(function () {
var oTable = $('#myDataTable').dataTable({
"bServerSide": true,
"sAjaxSource": "Home/AjaxHandler",
"bProcessing": true,
"aoColumns": [
{ "sName": "ID",
"bSearchable": false,
"bSortable": false,
"fnRender": function (oObj) {
return 'View';
}
},
{ "sName": "COMPANY_NAME" },
{ "sName": "ADDRESS" },
{ "sName": "TOWN" }
]
});
});
[/code]
is there something that I'm missing?
thanks
This discussion has been closed.