Problem 1:
I can't seem to get a grid in a Editor Template to work in a popup editor window of a grid. I have attached a sample of this issue. If you select the Grid Editor Menu Item you will see that it crashes. If you remove the Html.Partial statement from the TopLevelItem Editor, you will see that it works. To demostrate that the template works fine, I added a Direct Edit Menu ITem that calls the Template which led me to my second problem....
Problem 2:
If you use the Direct Edit menu item at first glance everything looks ok. If you pay close attention to the dropdown for ItemType (not the one in the grid, that is itemtype2 and works fine), it doesn't select the correct default value. Upon forther inspection, it doesn't seem to behave in the same manner as when inside the Grid Popup editor. If you post it back, only the ID is trying to be return (inspect the Request object's Forms collection) but not the entire model. The Item Type is null. Again, this works fine inside a Grid Popup.
My intial thought was to host the editor in my own window using custom actions on the grid, but then I ran into problem 2.
Any thoughts on this? Is this a bug? Unintended use?
I can't seem to get a grid in a Editor Template to work in a popup editor window of a grid. I have attached a sample of this issue. If you select the Grid Editor Menu Item you will see that it crashes. If you remove the Html.Partial statement from the TopLevelItem Editor, you will see that it works. To demostrate that the template works fine, I added a Direct Edit Menu ITem that calls the Template which led me to my second problem....
Problem 2:
If you use the Direct Edit menu item at first glance everything looks ok. If you pay close attention to the dropdown for ItemType (not the one in the grid, that is itemtype2 and works fine), it doesn't select the correct default value. Upon forther inspection, it doesn't seem to behave in the same manner as when inside the Grid Popup editor. If you post it back, only the ID is trying to be return (inspect the Request object's Forms collection) but not the entire model. The Item Type is null. Again, this works fine inside a Grid Popup.
My intial thought was to host the editor in my own window using custom actions on the grid, but then I ran into problem 2.
Any thoughts on this? Is this a bug? Unintended use?