<script type="text/x-jsrender" id="columnTemplate">
<input type="checkbox">
</script>
<div id="Grid"></div>
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
columns: [
{ headerText: "checklist", template: "#columnTemplate" },
. . .
. .
],
templateRefresh: function (args) {
$(args.cell).find("input").ejCheckBox({
change: function (args) {
console.log("changed");
}
})
}
});
});
</script> |
Hi Ignacio,
Thanks for the update. Please get back to us if you need further assistance on this.
Regards,Seeni Sakthi Kumar S.
<script type="text/x-jsrender" id="columnTemplate">
<input type="checkbox">
</script>
<ej:Grid ID="EmployeesGrid" runat="server" AllowPaging="True">
<PageSettings PageSize="4"></PageSettings>
<ClientSideEvents TemplateRefresh="refresh" />
<Columns>
<ej:Column HeaderText="checkbox" Template="#columnTemplate" TextAlign="Center" Width="110" />
……………………….
</Columns>
</ej:Grid>
<script>
function refresh(args) {
$(args.cell).find("input").ejCheckBox({
change: function (args) {
console.log("changed");
}
})
}
</script> |