When you don’t want to define a new lookup value (None, Other etc. ) for the null or empty selection while editing, you can use the given approach as well to clear the lookup column (during the edit operation):
onEditorPreparing: function (e) {
if (e.parentType === "dataRow") {
if (e.dataField === "REASON_TYPE_ID") {
e.editorOptions.showClearButton = true;
}
}
},
As a result, a clear button is displayed (“x”) to clear the previously selected value like below:

Resource:
That’s it, wishing you a great day!
Comments are closed.