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
$("#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