Greetings, if I want to augment the functionality of one of the Telerik javascript "classes", is there a proper way to override a function such that my change will be applied after the initial Telerik js declarations/file references, but before the $create() function calls which use the classes that are being modified?
For instance, I'd like to tweak the "initialize" function in the WebServiceRenderingManager class. So at some point after WebServiceRenderingManager is declared by the Telerik js script I want to update the prototype for it:
$(
function
() {
var
$tsr = Telerik.Web.UI.Scheduler.Rendering;
var
$wsrm = $TSR.WebServiceRenderingManager;
$wsrm.prototype.initialize =
function
() {
// my custom code would go here
$tsr.WebServiceRenderingManager.callBaseMethod(
this
,
'initialize'
);
};
});
Is there a standard way/place to include my code above so that it will run after the initial WebServiceRenderingManager prototype is defined, but before the client-side code executes that initializes the control instances ($create(Telerik.Web.UI.RadScheduler, {...});)? Is there a best practice for this?
Btw, I only need to do this for a particular aspx page, not globally for my entire site.
Thanks in advance!