Hi,
The childrens do not appear correctly on the third level. In the image are marked. They only appear at the end.
This is the code I'm using:
<div>
@(Html.EJS().TreeGrid("TreeGridContainer")
.DataSource((IEnumerable<object>)Model)
.Columns(co =>
{
co.Field("Id").HeaderText("Id").Width(125).Add();
co.Field("ParentId").HeaderText("ParentId").Width(100).Add();
co.Field("IsParent").HeaderText("IsParent").Width(100).Add();
co.Field("Nivel").HeaderText("Level").Width(125).Add();
co.Field("Pai").HeaderText("Parent").Width(100).Add();
co.Field("Codigo").HeaderText("Código").Width(100).Add();
co.Field("Descricao").HeaderText("Descrição").Width(250).Add();
co.Field("Status").HeaderText("Stat.").Width(60).Add();
co.Field("Quantidade").HeaderText("Quant.").Width(80).Add();
co.Field("Perda").HeaderText("Perda").Width(100).Add();
co.Field("Sequencia").HeaderText("Seq.").Width(75).Add();
co.Field("OperacaoComponente").HeaderText("Op. X Comp.").Width(225).Add();
co.Field("Roteiro").HeaderText("R").Width(50).Add();
co.Field("Operacao").HeaderText("O").Width(50).Add();
co.Field("DescricaoOperacao").HeaderText("Descrição").Width(150).Add();
co.Field("Departamento").HeaderText("D").Width(50).Add();
co.Field("DescricaoDepartamento").HeaderText("Descrição").Width(150).Add();
co.Field("Recurso").HeaderText("R").Width(50).Add();
co.Field("DescricaoRecurso").HeaderText("Descrição").Width(150).Add();
})
.Height(600)
.AllowFiltering()
.FilterSettings(fs => fs.Type(Syncfusion.EJ2.Grids.FilterType.Excel))
.AllowResizing()
.AllowSorting()
.AllowMultiSorting()
.AllowReordering()
.ShowColumnMenu()
.ParentIdMapping("ParentId")
.IdMapping("Id")
.HasChildMapping("IsParent")
//.ChildMapping("ParentId")
.TreeColumnIndex(3)
.EnableAltRow(true)
.Toolbar(new List<object>() { new { prefixIcon = "e-big-icon", id = "small", align = "Left", tooltipText = "Small" }, new { prefixIcon = "e-medium-icon", id = "medium", align = "Left", tooltipText = "Medium" }, new { prefixIcon = "e-small-icon", id = "big", align = "Left", tooltipText = "Large" } })
.ToolbarClick("onToolbarClick")
.Render())
</div>
What's wrong?
Thanks regards.
Maico Schmitz