General Category > Bug Report

New row comit and pq_detail column

(1/2) > >>

MichalV:
Hi Paramvir,

After the data saving the "add" commit fails if the grid includes pq_detail column (recIndx remains empty)
As a workaround I use the following code before the comit:


--- Code: ---grid.Columns().find(function (column) {
    if (column.dataIndx == "pq_detail") {
        grid.Columns().hide({ diHide: ["pq_detail"] });
    }
});
--- End code ---


And the following after the commit:


--- Code: ---grid.Columns().find(function (column) {
    if (column.dataIndx == "pq_detail") {
       grid.Columns().hide({ diShow: ["pq_detail"] });
    }
});
--- End code ---

Is it possible to fix it in the next release? E.g. skip the pq_detail column in the grid.commit function?
Thanks in advance for you help!

paramvir:
I don't understand why you have added pq_detail in the colModel. Can you please clarify?

MichalV:
Because my grid uses Row details with tabs, based on your demo in "Nesting / Row details"

paramvir:
pq_detail is not used in the colModel in any of the nesting / row details examples.

Have you tried removing pq_detail from colModel.

MichalV:
Yes, when I remove the pq_detail column (column with type: "detail") the commit works well after adding new row.

Navigation

[0] Message Index

[#] Next page

Go to full version