MVCxTreeListColumn.SetEditCellTemplateContent(Action<TreeListEditCellTemplateContainer>) Method
In This Article
Allows you to provide a template to render edit cells that correspond to the current column.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public void SetEditCellTemplateContent(
Action<TreeListEditCellTemplateContainer> contentMethod
)
#Parameters
Name | Type | Description |
---|---|---|
content |
Action<Tree |
A method to which a template content rendering is delegated. |
#Remarks
Note
Once a template defined using the Set
column.SetEditCellTemplateContent(c => {
ViewContext.Writer.Write(Html.Hidden("hiddenID", DataBinder.Eval(c.DataItem, "ItemId")).ToHtmlString());
Html.DevExpress().DropDownEdit(dde => {
dde.Name = "ItemId";
}).Bind(DataBinder.Eval(c.DataItem,"ItemId")).Render();
});
See Also