In javascript, $find returns a reference to a Telerik object's exposed client API (e.g., set_enabled, set_autoPostBack, etc.)
Right now, I use this script to get it by the suffix of the id:
Works ok, but seems a little roundabout. Is there a built in Telerik function that does this? It seems like I'm scanning the DOM twice.
I'm avoiding the <%%> tags to allow the scripts to be moved to separate files.
Right now, I use this script to get it by the suffix of the id:
var
$findByBaseId =
function
(baseId) {
return
$find($(
'[id$='
+ baseId +
']'
).attr(
'id'
));
};
Works ok, but seems a little roundabout. Is there a built in Telerik function that does this? It seems like I'm scanning the DOM twice.
I'm avoiding the <%%> tags to allow the scripts to be moved to separate files.