<script type="text/x-jsrender" id="columnTemplate">
<div id="upload" class="upload"></div>
</script>
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
columns: [
{ field: "EmployeeID", headerText: "UploadBox", template: true, templateID: "#columnTemplate", textAlign: "center", width: 110 },
{ field: "EmployeeID", headerText: "Employee ID", isPrimarykey: true, editType: ej.Grid.EditingType.NumericEdit, textAlign: ej.TextAlign.Right, width: 90 },
{ field: "FirstName", headerText: "First Name", width: 90 },
. . .
],
templateRefresh: "template",
});
});
function template(args) {
$(args.cell).find(".upload").ejUploadbox({ saveUrl: "" });
}
</script> |
Is there way to show button only if cell is clicked ? cellEdit, doesn't work to bind uploadBox.
When I click on cell and it is active, the button is removed and there is input tag, instead, how to prevent that ?
I am using template. On click to be same template, but not input tag.