<Grid>
$("#Grid").ejGrid({
. . .
columns: [
. . .
{
headerText: "Employee Details",
commands: [
{
type: "details",
buttonOptions: {
contentType:"imageonly",
width: "100",
click: "onClick",
prefixIcon: "e-uiLight e-handup"
}
}
],
isUnbound: true,
textAlign: ej.TextAlign.Left,
width: 150
}
]
}); |
<Grid>
$("#Grid").ejGrid({
allowPaging: true,
pageSettings: { pageSize: 4 },
templateRefresh: "templateRefresh",
columns: [
{ headerText: "Employee Image", template:"<input type='text' id='{{:EmployeeID}}' class='DateTime' />", textAlign: "center", width: 110 },
. . . .
]
});
});
function templateRefresh(args) {
var DateTemplate = $(args.cell).find(".DateTime"); // get the input cell
$(DateTemplate).ejDateTimePicker(); // Render the DataTimePicker control
}</script> |