This is a migrated thread and some comments may be shown as answers.

[Solved] Un-referenced Editor Template Causing Error in Grid

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 10 Feb 2011, 10:55 PM
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

1 Answer, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 15 Feb 2011, 05:55 PM
So any suggestions on this? Or am I SOL on this one?

Cheers,
Chris
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Share this question
or