Hello,
I have a grid which is using a popup editor form, so I have a shared view serving as the popup form. Inside that shared view I am editing a string field by using:
@Html.EditorFor( zone=> zone.ZoneContents, "ContentEditor", new { contents = Model.ZoneContents})
So this is using my "ContentEditor" shared view which is under the Views/Shared/EditorTemplates folder. All is well and good. The editor appears, I'm able to insert content and then when I try to update I get an error because zone.zonecontents is null.
Why would it not be updating the model with the value?
I would have posted some more code in here but the formatter isn't currently working and it would be pretty ugly. I can post more later, just let me know what you want to see.
Thanks!
I have a grid which is using a popup editor form, so I have a shared view serving as the popup form. Inside that shared view I am editing a string field by using:
@Html.EditorFor( zone=> zone.ZoneContents, "ContentEditor", new { contents = Model.ZoneContents})
So this is using my "ContentEditor" shared view which is under the Views/Shared/EditorTemplates folder. All is well and good. The editor appears, I'm able to insert content and then when I try to update I get an error because zone.zonecontents is null.
Why would it not be updating the model with the value?
I would have posted some more code in here but the formatter isn't currently working and it would be pretty ugly. I can post more later, just let me know what you want to see.
Thanks!