18 Jun 2012 8:27 AM #1
Data grid selection not representing entire model
I might just be missing something basic here but I noticed that if I don't include a column for a model property, the value is missing when the selectionChange event is fired.
I have a panel.grid that is bound to the StudentsStore which is bound to Students model. When the data is returned by the API it has FirstName, LastName, PhoneNumber. If the data grid has a column for FirstName and LastName but NOT PhoneNumber, when an item is selected its data (a model instance) no longer has PhoneNumber.
I imagine this is because it is "creating" a model based on columns but I hope I am wrong. It would be ideal to get a reference to the original model or at least all of its data.
Am I missing something?
19 Jun 2012 3:07 AM #2
May you provide your code for better understandingsword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
19 Jun 2012 6:40 AM #3
Actually, I was totally wrong. I am 90% sure it was just some bad data. Sorry!