Hello Bryntum team,
I tried to implement server side cell is editable or not.
onBeforeCellEditStart={async ({editorContext}) => {
const oid = editorContext.record.data.name_oid;
let resp = {};
await fetch(`https://localhost:8000/member/data/oid?id=${oid}`)
.then((res) => res.json())
.then((res) => {
resp = res;
});
return resp.success
}}
In backend I passed name_oid to that row.
{
id: 4,
name: "Gate 1",
capacity: 100,
airline: "SAS",
manager: "Linda",
name_oid: "g1",
},
{
id: 5,
name: "Gate 2",
capacity: 45,
domestic: "yes",
airline: "Lufthansa",
manager: "Steve",
name_oid: "g2",
},
{
id: 6,
name: "Gate 3",
capacity: 45,
airline: "SAS",
manager: "Steve",
name_oid: "g3",
},
{
id: 7,
name: "Gate 4",
capacity: 65,
airline: "Norwegian",
manager: "Linda",
name_oid: "g4",
},
{
id: 8,
name: "Gate 5",
capacity: 75,
domestic: "yes",
airline: "Air France",
manager: "Steve",
name_oid: "g5",
},
But it not work for me.
Below the screenshot attached response.