how a Ext.data.Model object access Ext.data.Store properties
Hi buddys I am new to ExtJS and now am learning.My doubt is as follows
var selModel = grid.getSelectionModel();
var selectedRecords = selModel.getSelection();
var selectionCount = selModel.getCount();
recData = 'From : ' + selectedRecords.data.mailid + '<br/> Subject is : ' + selectedRecords.data.subject;
In the above selectionRecords is an array of objects of Ext.data.Model.....but still can access "data" property...which is not at all a property of Ext.data.Model
Please help me....I am unable to understand this scenario
To get data from a model use the 'get' method, don't touch the data property
Thank you mankz for the reply........
but please explain me how model object can access the data property,which is not at all property of that class....
1. Docs are not always in 100% sync
thanks.....now i got it,
in such case we can access any class properties using any objects????????????????
this not still clarified can any one explain .........................
I don't think belaboring this issue adds anything to the discussion at this point.
Originally Posted by Baron89
Originally Posted by vijayasarathi
Last edited by jemptymethod; 5 Sep 2012 at 10:21 AM.
Tags for this Thread