This question is locked. New answers and comments are not allowed.
I have a typed grid that contains a customised template which is used to edit rows of the grid. The grid uses ajax binding.
I've no problems with the editing, inserting and updating of entries. My customised template shows the same as the 'auto form' that's created - but improves on the layout.
A recent change required me adding some Html.DisplayFor entries into the template. These always get rendered as null and I don't know why.
I've tested this within the telerik demos (Version Q1 2011, released 03/15/2011) and they have the same problem. Specifically, I added the template EditableProduct.cshtml to the Shared/EditorTemplates folder of the Razor area. All this contained was:
Then, when I went to the page all I saw was the confirm/cancel buttons. Can anyone tell me why it's not possible to render this information using DisplayFor. I've tested that EditorFor works and this does show the expected value.
Cheers.
I've no problems with the editing, inserting and updating of entries. My customised template shows the same as the 'auto form' that's created - but improves on the layout.
A recent change required me adding some Html.DisplayFor entries into the template. These always get rendered as null and I don't know why.
I've tested this within the telerik demos (Version Q1 2011, released 03/15/2011) and they have the same problem. Specifically, I added the template EditableProduct.cshtml to the Shared/EditorTemplates folder of the Razor area. All this contained was:
@model EditableProduct@Html.DisplayFor(m => m.ProductName)Then, when I went to the page all I saw was the confirm/cancel buttons. Can anyone tell me why it's not possible to render this information using DisplayFor. I've tested that EditorFor works and this does show the expected value.
Cheers.