This question is locked. New answers and comments are not allowed.
I have a grid with columns - Name, Value, Type.
If Type==1, then the I want the Editor for Value to be a TextBox.
If Type==2, then I need to display a dropdownlist.
So far, I'm able to pass the Type to the Editor Template and load a dropdownlist with ajax.
What's the best way to handle this scenario? Is there anyway to load a PartialView for the Edit Template in OnEdit of the Grid?
Can I have both dropdownlist and textbox in the EditorTemplate view and hide one/display the other base on Type?
Thanks,
nick
If Type==1, then the I want the Editor for Value to be a TextBox.
If Type==2, then I need to display a dropdownlist.
So far, I'm able to pass the Type to the Editor Template and load a dropdownlist with ajax.
What's the best way to handle this scenario? Is there anyway to load a PartialView for the Edit Template in OnEdit of the Grid?
Can I have both dropdownlist and textbox in the EditorTemplate view and hide one/display the other base on Type?
Thanks,
nick