Hi ,
I have two column in the iggrid. One of the columns has datatype bool. ie it has checkbox. Checkbox column value doent come from database. I want to check the checkbox based on another column. Please help me to do this.
I tried using template. But it is returning string value in the column. if i return true, It is displaying as true in the column instead of checking the check box.
Is there anyway to do this?
$(function () { $("#grid").igGrid({ renderCheckboxes: true, primaryKey: "ProductID", columns: [ { headerText: "Product ID", key: "ProductID", dataType: "number" }, { headerText: "Product Name", key: "Name", dataType: "string" }, { headerText: "Product Number", key: "ProductNumber", dataType: "string" }, {headerText: "Is Active", key: "IsActive", unbound: true, dataType: "bool", formula: function (dataRec, grid) { return (dataRec.ProductID > 100) ? true : false; } } ], width: "500px", dataSource: products }); });