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

kendo Treeview controls througing runtime error

3 Answers 100 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
pnara
Top achievements
Rank 1
pnara asked on 17 Jul 2012, 01:59 PM
Hi All,

Can you please help me on this .i am using the telerik mvc application.
i have kendo treeviews is not working on the telerik asp.net mvc3 application.but its working fine for the Normal asp.net mvc3 application
add one .cshtml page and add following code its throughing the error.
<div>
    @(Html.Kendo().TreeView()
        .Name("TreeView") here througing runtime error.
        .Items(treeview =>
        {
            treeview.Add().Text("My Web Site")
                .SpriteCssClasses("folder")
                .Expanded(true)
                .Items(root =>
                {
                    root.Add().Text("images")
                        .Expanded(true)
                        .SpriteCssClasses("folder")
                        .Items(images =>
                        {
                            images.Add().Text("logo.png")
                                .SpriteCssClasses("image");


                            images.Add().Text("body-back.png")
                                .SpriteCssClasses("image");


                            images.Add().Text("my-photo.jpg")
                                .SpriteCssClasses("image");
                        });


                    root.Add().Text("resources")
                        .Expanded(true)
                        .SpriteCssClasses("folder")
                        .Items(resources =>
                        {
                            resources.Add().Text("pdf")
                                .Expanded(true)
                                .SpriteCssClasses("folder")
                                .Items(pdf =>
                                {
                                    pdf.Add().Text("brochure.pdf")
                                        .SpriteCssClasses("pdf");


                                    pdf.Add().Text("prices.pdf")
                                        .SpriteCssClasses("pdf");
                                });


                            resources.Add().Text("zip")
                                .SpriteCssClasses("folder");
                        });


                    root.Add().Text("about.html")
                        .SpriteCssClasses("html");


                    root.Add().Text("contacts.html")
                        .SpriteCssClasses("html");


                    root.Add().Text("index.html")
                        .SpriteCssClasses("html");


                    root.Add().Text("portfolio.html")
                        .SpriteCssClasses("html");
                });
        })
    )
</div>

i had added the kendo dll file web.cong files and referece aslo but its throughing the javascript runtime error like this.

Microsoft JScript runtime error: Object doesn't support property or method 'kendoTreeView'
plwease anybody can help me .


Thanks & Regards,
Narasimha

3 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 24 Jul 2015, 02:37 PM

This is an old post with no reply, I've seem to hit this error as well

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'kendoTreeView'

 What is the fix for this, I've just open'd a new project via the Telerik extension and just navigate to the about page and get this error.

0
Jonathan
Top achievements
Rank 1
answered on 24 Jul 2015, 03:09 PM
There seems to be a problem when using @(Html.Kendo().TreeView(), it cause error above and using $("#tree").kendoTreeView doesn't cause any error at all. 
0
Alexander Popov
Telerik team
answered on 29 Jul 2015, 12:57 PM
Hello Jonathan,

I am not sure what exactly is causing this and so far I was not able to reproduce it. Would it be possible to share a sample project where this occurs?

Regards,
Alexander Popov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TreeView
Asked by
pnara
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or