Hi,
When I add the option ".Selectable()" to my grid it does not render. Any ideas? Here is the code I am using to define the grid:
@(Html.Kendo().Grid<TEAMSV2.Models.NotYetInvoicedGridDTO>() .Name(Section + TabName + "Grid") .HtmlAttributes(new { style = "border-width: 0px;" }) .DataSource(datasource => datasource .Ajax() .Read(read => { read.Action("GetGridData", "TeamsV2", new { grid = Section + "_" + TabName }).Type(HttpVerbs.Post); }) .Sort(sort => sort.Add("Created").Descending()) .PageSize(120) .ServerOperation(false) ) .Columns(columns => { columns.Template(e => { }).Width(57).ClientTemplate(Html.Partial(ColumnTemplatePath + "IconsTemplate").ToHtmlString()); columns.Bound(entry => entry.QuoteType).Title("Type").Width(100).Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "QuoteTypeTemplate").ToHtmlString()); columns.Bound(entry => entry.Client).Title("Client").Width(100).Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "ClientTemplate").ToHtmlString()); columns.Bound(entry => entry.Address).Title("Site").Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "SiteTemplate").ToHtmlString()); columns.Bound(entry => entry.Postcode).Title("Postcode").Width(100).Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "PostcodeTemplate").ToHtmlString()); columns.Bound(entry => entry.Project).Title("Project").Width(100).Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "ProjectTemplate").ToHtmlString()); columns.Bound(entry => entry.JobNoFormatted).Title("Job No.").Width(80).Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "JobNoTemplate").ToHtmlString()); columns.Bound(entry => entry.ClientOrderNo).Title("Client Order No.").Width(80).Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "ClientOrderNoTemplate").ToHtmlString()); columns.Bound(entry => entry.Value).Title("Value").Width(100).Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "ValueTemplate").ToHtmlString()); columns.Bound(entry => entry.Created).Title("Date").Width(80).Template(e => { }).ClientTemplate(Html.Partial(ColumnTemplatePath + "CreatedTemplate").ToHtmlString()); columns.Template(e => { }).Title(" ").Width(35).ClientTemplate(Html.Partial(ColumnTemplatePath + "SelectorTemplate").ToHtmlString()); }) .ClientDetailTemplateId(Section + TabName + "DetailTemplate") .Sortable() .ToolBar(t => t .Template(Html.Partial(ColumnTemplatePath + "ToolsTemplate").ToHtmlString())) .Pageable(p => p .Refresh(true) .PageSizes(new[] { 15, 30, 60, 120 }) .ButtonCount(5)) .Events(e => e .ExcelExport("excelExport") .DataBound(Section + TabName + "Databound")) .Excel(ex => ex .FileName(Section + TabName + ".xlsx") .AllPages(true)) .Selectable())
And here is the error I get from the Chrome console:
kendo.custom.min.js:4 - Uncaught TypeError: Cannot read property 'parseOptions' of undefined
We are using version 2015.1.429 of the kendo tools.
Thanks,
Mark.
