I am working with the good example of Editing custom editor under the MVC examples.
It shows how to build a dropdownlist for use when editing a cell in a grid.
I have to create a new post in the grid and I add the following to the file; Editing_Custom.cshtml:
.Create(create => create.Action("EditingCustom_Create", "Grid")) .ToolBar(toolBar => { toolBar.Save(); toolBar.Create(); })And I already get an error here before I come to do the coding in the .cs-file.
When debugging with firebug, I get an error from javascript that says: ReferenceError: Employee is not defined.
Employee is the class that is used for making the dropdownlist.
Could someone please give me a hint on what I have to do when creating a post in a grid with relational data?
Thanks :o)

$("#photoList").kendoMobileListView({
dataSource: photoDataSource,
template: kendo.template($("#photoListTemplate").html())
});
<script type="text/x-kendo-tmpl" id="photoListTemplate">
<a onclick="editPicture('${data.photo_id}');">
<img class="item-photo" src="${data.imageURI}">
<h3 class="item-title">${data.title}</h3>
<p class="item-info">(Click to edit)</p>
</a>
<a data-role="button" class="delete-link" onclick="removePicture('${data.photo_id}');">Remove</a>
</script>
<ul data-role="listview" data-style="inset" data-type="group">
<li>Property
<ul>
<li style="text-align:center;"><h4 id="propertyInfoDisplay"></h4></li>
<li style="text-align:center;">
<a onclick="showCameraOptions();" data-role="button">Photo</a>
<a onclick="uploadThisPropertyPhotos();" data-role="button">Upload</a>
<a onclick="showMap();" data-role="button">Map</a>
</li>
</ul>
</li>
<li>Photos for upload
<ul id="photoList"></ul>
</li>
</ul>