This question is locked. New answers and comments are not allowed.
I have a grid that is bound to my model, and I use an editor template to provide a combobox to select the value of one column when the row is in edit mode.
Here is my editor template:
The problem is my editor is loaded with the same SelectList for every row in the grid; I need to load a different set of data for each row, based on model properties bound to that row.
Has anyone done this?
Cheers,
Jason
Here is my editor template:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%= Html.Telerik().DropDownList()
.Name("Originator")
.BindTo(new SelectList((IEnumerable)ViewData["Originators"], "OriginatorId", "Name"))
%>The problem is my editor is loaded with the same SelectList for every row in the grid; I need to load a different set of data for each row, based on model properties bound to that row.
Has anyone done this?
Cheers,
Jason