This question is locked. New answers and comments are not allowed.
Janus Pienaar
Top achievements
Rank 1
Janus Pienaar
asked on 15 Jan 2010, 08:36 AM
I'm using the Telerik Grid and it works perfectly on it's own but I think there might be some compatibility issues when trying to use this with the standard jquery Autocomplete plugin.
The plugin works perfectly on it's own but when I try to use this with the Telerik Grid it throw a Script error. "Microsoft JScript runtime error: Object doesn't support this property or method" it happen on the following line $('#txtStoryTags').autocomplete.
So it's saying that the textbox doesn't support the autocompete function, which is not true. I have checked and I def. do reference all the necessary .js files.
I've basically narrowed it down to the following:
If I comment out the following line <%Html.Telerik().ScriptRegistrar().Render(); %> autocomplete works perfectly.
So it must be something to do with script getting messed up or something.
Has any else had this problem?
The plugin works perfectly on it's own but when I try to use this with the Telerik Grid it throw a Script error. "Microsoft JScript runtime error: Object doesn't support this property or method" it happen on the following line $('#txtStoryTags').autocomplete.
So it's saying that the textbox doesn't support the autocompete function, which is not true. I have checked and I def. do reference all the necessary .js files.
I've basically narrowed it down to the following:
If I comment out the following line <%Html.Telerik().ScriptRegistrar().Render(); %> autocomplete works perfectly.
So it must be something to do with script getting messed up or something.
Has any else had this problem?
5 Answers, 1 is accepted
0
Accepted
Hi Janus Pienaar,
Please try this:
<%Html.Telerik().ScriptRegistrar().jQuery(false).Render(); %>
and include jquery.js manually. This should help.
Regards,
Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Please try this:
<%Html.Telerik().ScriptRegistrar().jQuery(false).Render(); %>
and include jquery.js manually. This should help.
Regards,
Atanas Korchev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Janus Pienaar
Top achievements
Rank 1
answered on 15 Jan 2010, 09:12 AM
Great thanks for the quick reply.
I've tried it and it works perfectly!
Thanks again.
I've tried it and it works perfectly!
Thanks again.
0
Jeff
Top achievements
Rank 1
answered on 23 Jan 2010, 09:21 PM
If you want to take advantage of the wonderful
Combining/Compressing/Caching features of the Telerik ScriptRegistrar
AND get Intellisense for jQuery (or any of the other libraries that you
are loading with the ScriptRegistrar you can do this:
By wrapping the script includes in a if(false){} they will never be rendered to the client, but VS will still parse them for Intellisense support.
Hope this helps,
Jeff French
| <head> |
| ... |
| <% if(false) |
| { |
| //These are here for Intellisense support |
| //and will not be rendered to the page at runtime. |
| %> |
| <script src="../../Scripts/jquery.vsdoc.js" type="text/javascript"></script> |
| <% |
| } |
| %> |
| </head> |
| <body> |
| ... |
| <% Html.Telerik().ScriptRegistrar().Scripts( |
| //include your shared asset groups, document ready, etc... |
| ).Render(); %> |
| </body> |
By wrapping the script includes in a if(false){} they will never be rendered to the client, but VS will still parse them for Intellisense support.
Hope this helps,
Jeff French
0
Donald
Top achievements
Rank 1
answered on 28 Jan 2010, 04:58 PM
Thanks for the help, that also helped with my jquery ui dialog problem.
0
Ali
Top achievements
Rank 1
answered on 16 Oct 2011, 06:54 PM
Hay can you please send me sample code, how you implemented auto compleate in grid.
Thanks
Thanks