This question is locked. New answers and comments are not allowed.
Hello,
I have some concerns about using the script registrar.
1) Would I be correct in assuming that all or most of the MVC controls end up communicating with the script registrar behind the scenes? For example, when I render a Telerik Menu, it actually inserts an OnDocumentReady call to jQuery.fn.tMenu()?
Is there any way to have the control render its jQuery call to a <script/> element instead, rather that going through the script registrar?
Is there a way to use the Telerik MVC controls without needing to use the script registrar?
2) Also, if I use the script registrar, I notice that I can no longer place a $(document.ready()) call in my own <script/> elements. They do not fire. The only way to have it execute is registering with the script registrar - but I don't want my components to be coupled to the script registrar. Is there any way to use both <script>$(document.ready(....</script> as well as continuing to use the script registrar? Or is it one or the other?
Much thanks, let me know if you need any clarifications.
I have some concerns about using the script registrar.
1) Would I be correct in assuming that all or most of the MVC controls end up communicating with the script registrar behind the scenes? For example, when I render a Telerik Menu, it actually inserts an OnDocumentReady call to jQuery.fn.tMenu()?
Is there any way to have the control render its jQuery call to a <script/> element instead, rather that going through the script registrar?
Is there a way to use the Telerik MVC controls without needing to use the script registrar?
2) Also, if I use the script registrar, I notice that I can no longer place a $(document.ready()) call in my own <script/> elements. They do not fire. The only way to have it execute is registering with the script registrar - but I don't want my components to be coupled to the script registrar. Is there any way to use both <script>$(document.ready(....</script> as well as continuing to use the script registrar? Or is it one or the other?
Much thanks, let me know if you need any clarifications.