I have a model defined as BUS having fields tyre (string), color(string) , company(string).In the main panel trying to read the data one by a ajax and other by some webservice call.Both of this needs to be displayed on the same GRID.
In the store i am creating a array of records which has two arrays one prepared by ajax call and the other prepared by webservice data.I call a method and get the data from webservice and push it to the main records array which does have the data but the type of object it stores is different.
When checked using chrome dev tools it seems to me that the one prepared from ajax are equivalent to model and the other one are just object having some fields.The below have model:function which points to the model defined.
data:Object > this have values exactly like my webservice array object.
dirty:false
editing:false
events:Object
id:"travel.data.model.BUS-ext-record-1613"
index:2
internalId:"ext-record-1613"
modified:Object
phantom:true
raw:Object
store:m
the one which i get from webservice is like normal Object in a array which i am basically combining and trying to show on GRID but the GRID display only the above type of object.
data : Object > see this object does not have those other properties
tyre: "eight"
color: "blue"
Do I need to convert it to model type before i push into the main array?