Hi Laurin,
Thanks for the contacting syncfusion support.
We checked your code example and found that you are showing the hided column in the actionComplete event of Grid which is the cause of the issue. To overcome the reported issue we suggest you to show the hided columns in the actionBegin event of Grid demonstrated in the below code snippet,
|
actionBegin(args) {
if (args.requestType === "add") {
const cols = this.gridInstance.columns;
for (const col of cols) {
if (col.field === "CustomerName") {
col.visible = false;
}
}
}
if (args.requestType === "save") {
const cols = this.gridInstance.columns;
for (const col of cols) {
if (col.field === "CustomerName") {
col.visible = true;
}
}
}
} |
We have prepared a sample based on this for your reference. You can find it below,
We have created an improvement task for the documentation and it will be refreshed in online ASAP.
Please get back to us if you need further assistance with this.
Regards,
Balaji S.