This is a migrated thread and some comments may be shown as answers.

Accessing Records in Data Source

1 Answer 337 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 13 Dec 2011, 11:35 PM

I have a DataSource that is the data source for two  different kendoDropDownList. Is there a way of accessing the data within the data source? The data source is a address block with a reference as a key and value in the drop down. The Address, City, State and Zip are also present in the data source. How would I access that data without having to pull over another set of the data?

Thanks
Randy

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 14 Dec 2011, 11:06 AM
Hello Randy,

There are several ways to access DataSource records. The data() method could be used to return the entire available records or view() - just the current view (with applied sorting, filtering, paging etc.). In order to access individual records you may use either at(index) or if model id is specified - get(id), as shown in the following sample:


Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Randy
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or