i need filter a Backgrid by a model sub field. I have the next JSON string from the server:
[{"iduser":
{"iduser":1224,"apellido":"Agostini","nombre":"Juan Ignacio","dni":47121281}
},
{"iduser":
{"iduser":1225,"apellido":"Alvarez","nombre":"Pedro","dni":4712312}
}]
So, i show the user fullname with the next custom StringCell render:
{name: 'fullname', label: 'Nombre completo', cell: Backgrid.StringCell.extend({
render: function(){
var user = this.model.get('iduser');
var fullname = user.apellido + ", " + user.nombre;
this.$el.html(fullname);
return this;
}
}), editable: false, sortable: true}
Now, i try set the filter by "fullname", but not works. Any ideas ?