I want to make a CRUD web application with JsGrid and Express.js. Server side render data to a jade file. Then I send data to a JavaScript file that use JsGrid. So I send my data in a fonction parameter and I want to load that data to my JsGrid in the ajax function.
Thank you for your help.
///// My code begins here
function load_data(clientsData){
$("#clients").jsGrid({
height: "auto",
width: "1000px",
filtering: true,
inserting: true,
editing: true,
sorting: true,
paging: true,
autoload: true,
pageSize: 10,
pageButtonCount: 5,
deleteConfirm: "Do you really want to delete client?",
controller: {
loadData: function(clientsData) {
return $.ajax({
type: "GET",
url: "/clients",
data: clientsData
});
},
},
});
}
via Ted Nanga
No comments:
Post a Comment