kendo Treeview controls througing runtime error

4 posts, 0 answers
  1. pnara
    pnara avatar
    3 posts
    Member since:
    Aug 2012

    Posted 17 Jul 2012 Link to this post

    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
  2. Jonathan
    Jonathan avatar
    2 posts
    Member since:
    Apr 2015

    Posted 24 Jul 2015 in reply to pnara Link to this post

    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.

  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Jonathan
    Jonathan avatar
    2 posts
    Member since:
    Apr 2015

    Posted 24 Jul 2015 in reply to Jonathan Link to this post

    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. 
  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 29 Jul 2015 Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready