This is a problem I really want to resolve. It should be easy.
I have a grid and I have set up an editor template to assign a datepicker to one of the fields. This field is in the grid, so has the same id value regardless of what row it is on. So when you assign a date on the fourth row via the datepicker, the field that get updated is the first one in the first row because the id is the same.
So I need a unique id for each to stop this from happening. How do I do this? Can I set the id to a unique id in my existing editor template, or do I have to use another one. One suggestion I have had is to use a display template, but I think that will read protect my field.
Now I think this is a very basic problem, does anyone have a solution? Maybe I should use jqGrid or MVC Contrib grid instead (I have not used them before).
Here is my code;
I have created a grid in my view using a foreach loop and a partial view;
View Complete Post