Hello,
I'm using the following grid in an MVC project, but am having an issue with the highlighted snippet below. When I try to set the SelectionMode to "Cell", I get the following error:
"cannot convert from 'Syncfusion.JavaScript.SelectionMode' to System.Action<Syncfusion.JavaScript.SelectionModeBuilder<MpOrderView.Models.OrderResponse>>"
Any help on figuring this out would be greatly appreciated.
Thank You,
Colin Webber
@(
Html.EJ().Grid<OrderResponse>("MP_WebOrders")
.Datasource(ds => ds.URL("/Order/GetMPOrders").Adaptor(AdaptorType.UrlAdaptor))
.EnableAltRow()
.AllowSorting()
.AllowPaging()
.PageSettings(page =>
page.PageSize(15)
)
.AllowMultiSorting()
.AllowFiltering(true)
.IsResponsive()
.SelectionType(SelectionType.Multiple)
.SelectionSettings(select => {
select.CellSelectionMode(CellSelectionMode.Box).SelectionMode(SelectionMode.Cell);
})
.EditSettings(edit => { edit.AllowAdding().AllowDeleting(); })
.SortSettings(sort =>
{
sort.SortedColumns(col => col.Field("OrderDate").Direction(SortOrder.Descending).Add());
sort.SortedColumns(col => col.Field("InternalOrderID").Direction(SortOrder.Descending).Add());
})
.Columns(col =>
{
col.Field(c => c.IntegrationOrderId).IsPrimaryKey(true);
col.Field(c => c.ExternalSystemName).HeaderText("External System").TextAlign(TextAlign.Left).Width(125).Add();
col.Field(c => c.InternalOrderID).HeaderText("System Order ID").TextAlign(TextAlign.Left).Width(125).Add();
col.Field(c => c.ERPOrderNumber).HeaderText("MAS Order Number").TextAlign(TextAlign.Left).Width(125).Add();
col.Field(c => c.OrderStatus).HeaderText("Order Status").TextAlign(TextAlign.Left).Width(125).Add();
col.Field(c => c.OrderTrackingNumber).HeaderText("Tracking Number").TextAlign(TextAlign.Left).Width(125).Add();
col.Field(c => c.OrderDate).HeaderText("Order Date").Format("{0:MM/dd/yyyy}").TextAlign(TextAlign.Left).Width(125).Add();
col.Field(c => c.OrderTotalPrice).Format("{0:C}").HeaderText("Order Total").TextAlign(TextAlign.Right).Width(125).Add();
col.Field(c => c.LastUpdated).Format("{0:MM/dd/yyyy}").HeaderText("Last Updated").TextAlign(TextAlign.Left).Width(125).Add();
})
.ClientSideEvents(eve => eve.RowDataBound("checkIssueStatus"))
)