I am very new to Javascript and pretty much just plugging and playing with this example, but here it is at a high level.
In my controller I am returning an Iqueryable to my view, which I then want to build a grid from.
My javascript looks like this:
$.ig.loader({
ready: function () {
$("#grid1").igGrid({
dataSource: Model,
primaryKey: "BatchNumber",
autoGenerateColumns: false,
height: "350px",
width: "800px",
columns: [
{ headerText: "Batch Number", key: "BatchNumber", dataType: "number" },
{ headerText: "Batch Group Item Date", key: "BatchGroupItemDate", dataType: "string" },
{ headerText: "Batch Comment", key: "BatchComment", dataType: "number" },
{ headerText: "Number Of Documents", key: "NumberOfDocuments", dataType: "number" },
{ headerText: "Total Transfered", key: "TotalTransfered", dataType: "date" },
{ headerText: "Not Transfered", key: "NotTransfered", dataType: "date" },
{ headerText: "CoId", key: "CoId", dataType: "date" }
],
});
}
});
Where the model is an IQueryable. I am using infragistics grid libraries as well. When I render the page nothing seems to happen and I get no output when monitoring the javascript in firefox. I am not sure where to start debugging this issue as my javascript knowledge is pretty limited. I am running asp.net mvc 4 as well.