Open rowter opened 3 years ago
try to add attribute or property for input tag by disabled or readonly
name: "CID",
type: "text",
width: 50,
title: "CID",
readonly: true,
editing: false,
insertTemplate: function ()
{
var input = this.__proto__.insertTemplate.call(this);
input.val('SCHHS');
input.prop("disabled",true);
return input;
}
Hello,
In the grid, I want to have a default value for one column. I followed the link below and it worked. https://github.com/tabalinas/jsgrid/issues/471#issuecomment-253190090
Issue is , users are able to edit the default value in the Insert template.
name: "CID", type: "text", width: 50, title: "CID", readonly: true, editing: false, insertTemplate: function () { var input = this.__proto__.insertTemplate.call(this); input.val('SCHHS'); return input;
Users should not be able to modify the default value in the insert template.
Thanks in advance