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

API reference for the .data function

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ross
Top achievements
Rank 1
Ross asked on 18 Jun 2013, 03:37 AM
An example line from my code:

$("#action-results-grid").data("kendoGrid").setDataSource(myDataSource);

How can I find a reference for the '.data("widget")' function, I have searched everywhere.

The examples clearly display how this function is used, but not once was it introduced in the tutorial documentation with a summary of it's functionality and why it is used.

My naive guess is that it returns an object wrapping the HTML element to provide methods associated with the widget, but still I would love to see a reference for this function to better understand how/when to use it and precisely what it does.

I can not find a reference to it in the API documentation.

Cheers,
Ross

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Jun 2013, 05:59 AM
Hello,

The documentation can be found here. That help topic explains what .data() is (comes from jQuery) and how it should be used.

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