This question is locked. New answers and comments are not allowed.
I would like to add a foreign key column to my grid and have it function when in insert mode, but not be editable afterwards. I have tried to detect this condition by using the grid's 'OnEdit' event and if the mode is "edit", access the dropdownlist control and call the disable() method.
I'm not even sure if that's the best way to approach this, but that's what I'm trying to do.
Assuming this would be workable, I've tried the following
(I am not using cell edit mode)
Unfortunately this fails with a claim that the control does not have a 'disable' function. So my question is "how can this be made to work"? Is there a better approach?
TIA
I'm not even sure if that's the best way to approach this, but that's what I'm trying to do.
Assuming this would be workable, I've tried the following
function TemplatesGridOnEdit(e) {
var mode = e.mode;
var form = e.form;
if (mode == "edit") {
$(form).find('#SoldToDropList').data('tDropDownList').disable();
}
}
(I am not using cell edit mode)
Unfortunately this fails with a claim that the control does not have a 'disable' function. So my question is "how can this be made to work"? Is there a better approach?
TIA