Our blazing fast Grid component built with pure JavaScript


Post by mats »

As Johan explained, when you feed in model instance as data, this merging does not happen. Try:


let store = new Store({
   data: [rawOrder],
   fields: [{ name: "BuyerName", type: "string", dataSource: "Buyer.Name" }],
   modelClass: Order
});

let order = store.first;

person.Order = order;
person2.Order = order;
order.Buyer = person;

console.log("rawPerson", rawPerson);
console.log("rawOrder", rawOrder);
console.log("person", person);
console.log("order", order);


Post by alfred0809 »

Not working for me aswell.....


Post by alex.l »

Hi alfred0809,

Please provide more details. What exactly is not working? Share your code? Steps to reproduce the problem?

All the best,
Alex


Post Reply