Right to Left Align in EJ 1 ASP.NET MVC TreeView

18 Feb 2016 / 1 minute to read

TreeView supports right to left align and it can be applied by specifying EnableRTL as true.

  • razor
  • @(Html.EJ().TreeView("treeViewDrag")
            .TreeViewFields(field =>
                field.Datasource((IEnumerable<LoadData>)ViewBag.datasource)
                .Id("Id")
                .ParentId("Parent")
                .Text("Text")
            )
            .EnableRTL(true)
        )