Closed aliabdzad closed 8 years ago
hi ... my model is like this : userModel:{ _id:'', profile:{fitst_name:'',...}, ... }
userModel:{ _id:'', profile:{fitst_name:'',...}, ... }
and my columns is like :
columns:[ { name: "profile.first_name", label: "name", cell: Backgrid.Cell.extend({ render: function(){ this.$el.text(this.model.get("profile").first_name); return this; }, formatter: _.extend({}, Backgrid.SelectFormatter.prototype, { fromRaw: function (formattedValue, model) { return model.get("profile").first_name; }, toRaw: function (formattedValue, model) { return formattedValue ; } }) }) } ]
everything is ok and my model update successfully but problem is that when i edit a cell then i can't edit it again until i refresh page . is it wrong my way ?
Backgrid does not support nested data by default. You have to look at the devtools console and see what errors are there. I can't debug it for you.
hi ... my model is like this :
userModel:{ _id:'', profile:{fitst_name:'',...}, ... }
and my columns is like :
everything is ok and my model update successfully but problem is that when i edit a cell then i can't edit it again until i refresh page . is it wrong my way ?