Tabstrip LoadContentFrom cause"kendoGrid") is undefined

3 posts, 0 answers
  1. lucerias
    lucerias avatar
    14 posts
    Member since:
    Nov 2011

    Posted 21 Apr Link to this post

    I have two grid views that performs pop up custom template editing, grid two is placed under tabstrip, please refer to following code:

                    .Animation(animation => 
                        animation.Open(effect => 
                    .Items(tabstrip =>
                            .LoadContentFrom(@Url.Action("Index", "AppGroup", new { AppID = ViewBag.AppID, AppName = ViewBag.AppName }).ToString());

    If i change LoadContentFrom to Content, all functions working fine. However, i need to use LoadContentFrom due to heavy content load. once i change it back to LoadContentFrom, when i try to edit grid one, the following error is thrown.

    VM37552:50 Uncaught TypeError: Cannot read property 'editRow' of undefined


    I have investigated further and found out it is becaues of"kendoGrid") is undefined and hence it breaks $("#Group").data("kendoGrid").editRow($(this)).



  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 25 Apr Link to this post


    Please make sure that the controller returns a partial view.

    Hristo Valyavicharski
    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
  3. UI for ASP.NET AJAX banner
  4. lucerias
    lucerias avatar
    14 posts
    Member since:
    Nov 2011

    Posted 25 Apr in reply to Hristo Valyavicharski Link to this post

    Yes, return as partial view fixed my problem, it is because if we return as normal view, js file import and styling section would be called again and this would cause conflict in the page.
Back to Top