This is a migrated thread and some comments may be shown as answers.
Object doesn't support property or method 'tComboBox'
1 Answer 25 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Geoffrey Hudik
Top achievements
Rank 1
Geoffrey Hudik asked on 03 Nov 2011, 07:10 PM
If (and only if) I combine my telerik scripts with the below in my _Layout.cshtml:

@(Html.Telerik().ScriptRegistrar().jQuery(false).DefaultGroup(
    group => group.Combined(true).Compress(true).Add(Url.JQuery())
    )
)

and on my page if I specify jquery(false) and supply my own jquery url:

@{ Html.Telerik().ScriptRegistrar().jQuery(false).jQueryValidation(false).OnDocumentReady("onDocReady")
    .Scripts(x => x.Add(Url.JQuery())
        .Add(Url.JQueryUnobtrusiveAjax())
        .Add(Url.JQueryValidate())
        .Add(Url.JQueryValidateUnobtrusive())
    ); 
    }

... then I get the below error:

SCRIPT438: Object doesn't support property or method 'tComboBox' 
BeginSearch, line 151 character 1

I happen to be using the same version of jquery (1.5.1) that telerik is using. I'm using 2011.2.712. Uncompressing will fix it but I would like it compressed. Likewise I can specify jquery(true) and it will be okay but I would prefer to be able to specify my jquery file and compress without error

1 Answer, 1 is accepted

Sort by
0
Geoffrey Hudik
Top achievements
Rank 1
answered on 03 Nov 2011, 07:37 PM
Nevermind I think my problem was that my .OnDocumentReady() argument was incorrect. It should have been "
onDocReady();"
Tags
ComboBox
Asked by
Geoffrey Hudik
Top achievements
Rank 1
Answers by
Geoffrey Hudik
Top achievements
Rank 1
Share this question
or