New to Kendo UI for jQueryStart a free 30-day trial

Returns a Kendo UI widget instance, attached to the provided element. This method can be used in scenarios when the page (e.g. a form) contains both generic HTML elements and Kendo UI widgets and the exact distribution is not clear.

Parameters:elementjQuery

The DOM element that may have a Kendo UI instance attached to it.

Returns:Object

The Kendo UI widget instance with all applicable methods and fields, if the instance is attached to the provided element.

js
// get element
var textbox = $("#myTextBox");
// get widget object
var widget = kendo.widgetInstance(textbox);
if (widget) {
	// execute an API method
	widget.value(/* ... */);
} else {
	// execute generic jQuery method
	textbox.val(/* ... */);
}
Not finding the help you need?
Contact Support