In my understanding kendo dataSource have many _properties. But im unclear about their unique characteristics.
can anybody explain difference among these kendo dataSource properties.
1. _pristine
2. _pristineData
3. _data
4. _view
5. dataSource.data()
most of the times all are looks like same to me and having same data.
First four having same records as in database.But dataSource.data() having unsaved record also (i.e updated with edit value).
In kendo docs i cant find exact difference among these things.
pls explain unique characteristics of these five ( _pristine, _pristineData, _data, _view, dataSource.data() )
Thanks in Advance
Please check my comments for first four points.
_pristine
I am not able to find this. I have also attached a screenshot for this. You can also check it by using below code snippet in your browser's console window.
$("#grid").data("kendoGrid").dataSource
_pristineData
Store your original data. This data is used in a batch update. When we click on "Cancel changes" button at that time the Grid will take the original data from here.
_data
Displayed currently applied data. If you change data in the grid then it will be applied into this data.
_view
Based on your pagesize and pageindex; this is whatever is databound to your grid. Ex: If you've bound 100 records to your grid but your page size is 10, then it will return only 10 records based in your page-index. .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With