This is a migrated thread and some comments may be shown as answers.

[Solved] Telerik Controls + jQuery AutoComplete

1 Answer 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
shiva
Top achievements
Rank 1
shiva asked on 23 Feb 2011, 01:55 PM

Hello, 

Does anybody used Telerik Controls and JQuery Autocomplete together. I'm facing a typical problem Uncaught TypeError: Object #<an Object> has no method 'autocomplete' when I try to use it on pages. Telerik Script and Style are registered in master pages.

 Shiva

1 Answer, 1 is accepted

Sort by
0
shiva
Top achievements
Rank 1
answered on 24 Feb 2011, 07:18 AM

Hi All,

I could able to figure out the resolution but I don't know the reason why it behaves such way. when using telerik controls we can use script registrar both at master page level and page level. I was registering my jQuery files on page level normally but it didn't work but when I did the following way it worked perfect.

 

Telerik ScriptRegistrar in Master Page

Also one other key is We have to use Render() only in Master Page

<%  Html.Telerik().ScriptRegistrar().Render();     %>

 

Telerik ScriptRegistrar in Page(Specific to Page)

<% Html.Telerik().ScriptRegistrar()

    .Scripts(script => script.AddGroup(

            "myGroup",

            group => group.Add("file1.js")

            .Add("file2.js")

          )

     ); %>

 

Hope this helps.

Shiva

Tags
General Discussions
Asked by
shiva
Top achievements
Rank 1
Answers by
shiva
Top achievements
Rank 1
Share this question
or