Using below code "kendo ui grid groupable" feature is working fine if not using "ClientRowTemplate", but if I enable the ClientRowTemplate the groupable feature working weirdly, I mean the expand/collapse grouped rows feature stops working in this case.
Please help me on this.
Thanks in advance
<div class="demo-section kendo-grid-override">
@(Html.Kendo().Grid<PM.Entities.Model.sp_Sel_WorkOrder_Result>()
.Name("Grid")
.Columns(columns =>
{
columns.Template(@<text></text>).HeaderTemplate("<input type='checkbox' id='chkOrderAll' title='Select all to Archive' />").Width(35);
columns.Bound(p => p.WorkOrderNo).Title("Order").Filterable(e => e.Extra(true)).Width(90);
columns.Bound(p => p.OrderDate).Title("Order Date").Filterable(e => e
.UI("customDatePicker")
.Extra(true)
.Operators(opt => opt.ForDate(dt => dt
.IsGreaterThan("Greater Than")
.IsGreaterThanOrEqualTo("Greater Than Or Equal To")
.IsLessThan("Less Than")
.IsLessThanOrEqualTo("Less Than Or Equal To")
))).Width(120);
columns.Bound(p => p.CustomerName).Title("Customer").Filterable(e => e.Extra(false)).Width(180);
columns.Bound(p => p.ParnterName).Title("Partner").Filterable(e => e.Extra(false)).Width(120);
columns.Bound(p => p.OrderStatus).Title("Order Status").Filterable(e => e
.UI("orderStatusFilter")
.Extra(false)
).Width(120);
columns.Bound(p => p.TelcoApprovalStatus).Title("Status Details").Filterable(false).Width(200);
columns.Bound(clm => clm.Id).Title("Actions").Filterable(false).Sortable(false).Width(200);
})
//.ClientRowTemplate(Html.Partial("Order/_OrderTabs").ToHtmlString())
.DataSource(ds => ds
.Ajax()
.Read(read => read.Action("GetAppWorkOrders", "WorkOrder").Data("window.pm.order.filterWorkOrders"))
.PageSize(PageSize)
)
.AutoBind(false)
.Events(e => e.DataBound("window.pm.order.onDataBound"))
.Pageable(page => page.PageSizes(PageSizes).Messages(msg => msg.Display("{0} - {1} of {2:n0} items")))
.Groupable()
.Scrollable(a => a.Height("auto"))
.Sortable(s => s.SortMode(GridSortMode.MultipleColumn))
.Resizable(e => e.Columns(true))
.Reorderable(reorder => reorder.Columns(true))
.Filterable(filterable => filterable
.Operators(operators => operators
.ForString(str => str.Clear()
.Contains("Contains")
.DoesNotContain("Not contains")
.StartsWith("Starts with")
.EndsWith("Ends with")
)
)
)
.NoRecords(NoRecordFound)
)
</div>
Please help me on this.
Thanks in advance
<div class="demo-section kendo-grid-override">
@(Html.Kendo().Grid<PM.Entities.Model.sp_Sel_WorkOrder_Result>()
.Name("Grid")
.Columns(columns =>
{
columns.Template(@<text></text>).HeaderTemplate("<input type='checkbox' id='chkOrderAll' title='Select all to Archive' />").Width(35);
columns.Bound(p => p.WorkOrderNo).Title("Order").Filterable(e => e.Extra(true)).Width(90);
columns.Bound(p => p.OrderDate).Title("Order Date").Filterable(e => e
.UI("customDatePicker")
.Extra(true)
.Operators(opt => opt.ForDate(dt => dt
.IsGreaterThan("Greater Than")
.IsGreaterThanOrEqualTo("Greater Than Or Equal To")
.IsLessThan("Less Than")
.IsLessThanOrEqualTo("Less Than Or Equal To")
))).Width(120);
columns.Bound(p => p.CustomerName).Title("Customer").Filterable(e => e.Extra(false)).Width(180);
columns.Bound(p => p.ParnterName).Title("Partner").Filterable(e => e.Extra(false)).Width(120);
columns.Bound(p => p.OrderStatus).Title("Order Status").Filterable(e => e
.UI("orderStatusFilter")
.Extra(false)
).Width(120);
columns.Bound(p => p.TelcoApprovalStatus).Title("Status Details").Filterable(false).Width(200);
columns.Bound(clm => clm.Id).Title("Actions").Filterable(false).Sortable(false).Width(200);
})
//.ClientRowTemplate(Html.Partial("Order/_OrderTabs").ToHtmlString())
.DataSource(ds => ds
.Ajax()
.Read(read => read.Action("GetAppWorkOrders", "WorkOrder").Data("window.pm.order.filterWorkOrders"))
.PageSize(PageSize)
)
.AutoBind(false)
.Events(e => e.DataBound("window.pm.order.onDataBound"))
.Pageable(page => page.PageSizes(PageSizes).Messages(msg => msg.Display("{0} - {1} of {2:n0} items")))
.Groupable()
.Scrollable(a => a.Height("auto"))
.Sortable(s => s.SortMode(GridSortMode.MultipleColumn))
.Resizable(e => e.Columns(true))
.Reorderable(reorder => reorder.Columns(true))
.Filterable(filterable => filterable
.Operators(operators => operators
.ForString(str => str.Clear()
.Contains("Contains")
.DoesNotContain("Not contains")
.StartsWith("Starts with")
.EndsWith("Ends with")
)
)
)
.NoRecords(NoRecordFound)
)
</div>