|
[CSHTML]
(Html.EJ().TreeGrid("TreeGridContainer"
.ChildMapping("Children")
.TreeColumnIndex(1)
.IsResponsive(true)
.Columns(co =>
{
co.Field("TaskId").HeaderText("Task Id").Width(45).Add();
co.Field("TaskName").HeaderText("Task Name").Add();
co.Field("StartDate").HeaderText("Start Date").Width(100).Add();
}
//..
)
@(Html.EJ().ScriptManager()) |
enumSpecifies the mode for column resizing
| Name | Description |
|---|---|
| FixedColumns | At load time column are rendered with given width value, while resizing the column only current column width is changed |
| Normal | At load time columns are stretched with control width,while resizing the column, current column width updated based on next column |
| NextColumn | In this mode columns are stretched with control width in load time and on resizing action. |
|
<style>
.e-treegrid .e-headercell {
height: 10px;
}
.e-treegrid .e-headercelldiv {
height: 10px;
line-height: 10px;
}
</style> |