Is it possible to use Kendo MVC Listview with complex objects

2 posts, 0 answers
  1. Andreas Laffer
    Andreas Laffer avatar
    1 posts
    Member since:
    Feb 2007

    Posted 02 Nov 2015 Link to this post

    Hi ! Im searching for a solution of my problem. Ich have a simple table named job with foreign keys from category and customer. I woultd like to edit this structure by using a listvew. My template is looking like:

    <script type="text/x-kendo-tmpl" id="jobtemplate">
        <div class="job-view k-widget">
            <div class="edit-buttons">
                <a class="k-button k-button-icontext k-edit-button" href="\\#"><span class="k-icon k-edit"></span></a>
                <a class="k-button k-button-icontext k-delete-button" href="\\#"><span class="k-icon k-delete"></span></a>


    But when I click on  the "add new Job"- button I will get the javscript error "Uncaught ReferenceError: Category is not defined". When I'm using the grid this is able to work, but not in Listview. What I'm doing wrong?

    best regards Andreas Laffer ​

  2. Alexander Popov
    Alexander Popov avatar
    1444 posts

    Posted 04 Nov 2015 Link to this post

    Hi Andreas,

    This could happen in case there is no default value specified for the complex object field. If that is not the case I would ask you to share the ListView configuration and the editor template as well, so we can investigate further.

    Alexander Popov
    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