This question is locked. New answers and comments are not allowed.
Hello,
When I add a new row in my grid, I need to change the item of my dropDownlist (in editorTemplate) (actually the first item) for the second one or third one.
In the edit.cshtml page, this is the field in the Grid :
I try since few hours and I cannot find how to change the value of my dropdownlist (and the text associate with) :
I try with previousValue and so on... Any suggestion?
When I add a new row in my grid, I need to change the item of my dropDownlist (in editorTemplate) (actually the first item) for the second one or third one.
In the edit.cshtml page, this is the field in the Grid :
...
columns.ForeignKey(c => c.NoTypeEtape, (System.Collections.IEnumerable)ViewBag.DropDownListTypesEtape, "NoTypeEtape", "DescriptionTypeEtape_fr").Width(100);
....
I try since few hours and I cannot find how to change the value of my dropdownlist (and the text associate with) :
var lst = $('#NoTypeEtape').data('tDropDownList');
I try with previousValue and so on... Any suggestion?