Popup editing has some real quirks. The following article will guide you in assigning the popup window a title, hiding columns, and renaming column lables:
http://vatturidotnet.blogspot.com/2013/09/kendo-grid-popup-editing-mode.html#.VCG6ust0w-U
In my implementation, I created these js functions:
function renameeditorcolumn(e, colname, newname) {
var test1 = e.container.find(colname).closest(".editor-field").prev();
for (var n = 0; n < test1.length; n++)
{
var lab1 = test1[n];
lab1.innerText = newname;
}
}
function removeeditorcolumn(e, colname) {
e.container.find(colname).closest(".editor-label").prev().andSelf().remove();
e.container.find(colname).closest(".editor-field").prev().andSelf().remove();
}
Example usage:
removeeditorcolumn(e, '#IsDeleted');
renameeditorcolumn(e, '#fk_ContactTypeID', 'Contact Type');
No comments:
Post a Comment