Eyup,
Thanks for the reply.
I do have some follow up questions on this
--------------------------------------------------------
In Custom Editor mode, You have the following code for category.
.Model(model =>{ model.Id(p => p.ProductID); model.Field(p => p.ProductID).Editable(false); model.Field(p => p.Category).DefaultValue(ViewData["defaultCategory"] as Kendo.Mvc.Examples.Models.CategoryViewModel);})
How does the values show up in edit mode. I don't' see any reference of 'categories' in the view file
I mean data is retrieved in controller and stored in ViewData["categories"] = categories , but where does this get refered or bind happens
Also where is Editing_Custom() called from
-------------------------------------------------------------
In Foreignkey column example. Do you expect CategoryID to be defined as Foriegnkey column in productviewmodel.
columns.Bound(p => p.ProductName); columns.ForeignKey(p => p.CategoryID, (System.Collections.IEnumerable)ViewData["categories"], "CategoryID", "CategoryName").Title("Category").Width(200); columns.Bound(p => p.UnitPrice).Width(200);
Thanks very much for your help