This question is locked. New answers and comments are not allowed.
Hi,
I'm creating a grid with a variety of data in it. I also want to make it editable. So far, everything is working fine. However, as soon as I want to change the edit mode (i.e. .Editable(edit => edit.Mode(GridEditMode.InForm)), now the grid errors out on a completely unrelated EditorTemplate (just adding the .Editable() causes this). The EditorTemplate in question is a drop down that was created for another grid on another view and is located in the EditorTemplates folder. Even though this view comes from the same controller, the drop down template is completely unrelated and unreferenced by this view. The error by the way is that there is no data for the drop down (as there shouldn't be since it's not used and therefore unpopulated).
So, why is this grid on this view even looking at that EditorTemplate when it's not referenced and completely unrelated? Is there a way to get around this? Perhaps specifying a filter to NOT use a specific EditorTemplate? Or does adding .Editable() require that any EditorTemplate in that folder be populated and ready to use regardless of whether or not it's referenced?
Cheers,
Chris
I'm creating a grid with a variety of data in it. I also want to make it editable. So far, everything is working fine. However, as soon as I want to change the edit mode (i.e. .Editable(edit => edit.Mode(GridEditMode.InForm)), now the grid errors out on a completely unrelated EditorTemplate (just adding the .Editable() causes this). The EditorTemplate in question is a drop down that was created for another grid on another view and is located in the EditorTemplates folder. Even though this view comes from the same controller, the drop down template is completely unrelated and unreferenced by this view. The error by the way is that there is no data for the drop down (as there shouldn't be since it's not used and therefore unpopulated).
So, why is this grid on this view even looking at that EditorTemplate when it's not referenced and completely unrelated? Is there a way to get around this? Perhaps specifying a filter to NOT use a specific EditorTemplate? Or does adding .Editable() require that any EditorTemplate in that folder be populated and ready to use regardless of whether or not it's referenced?
Cheers,
Chris