Hi Customer,
Greetings from the Syncfusion support.
Based on your query we suspect that you need to bind the childGrid rendering icon(Expand/Collapse) in right side of the Grid instead of default rendering in the left-side of Grid. We suggest you to use the EnableRtl property to place right of the Grid and you have bind childGrid from that expand icon in right side of Grid.
Please refer the below code example for more information.
|
[Index.cshtml]
@Html.EJS().Grid("ProductoForumlaGrid").DataSource((IEnumerable<object>)ViewBag.dataSource).EnableRtl().ChildGrid("").Columns(col =>
{
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Width("120").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add();
col.Field("CustomerID").HeaderText("Customer Name").Width("150").Add();
col.Field("Freight").HeaderText("Freight").Width("120").Format("C2").TextAlign(Syncfusion.EJ2.Grids.TextAlign.Right).Add();
col.Field("ShipCity").HeaderText("Ship City").EditType("dropdownedit").Width("150").Add();
}).AllowPaging().Render() |
Please get back to us, if you need further assistance.
Regards,
Balaji Sekar