This is a migrated thread and some comments may be shown as answers.

.Selectable() - Does not work

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 22 Aug 2016, 09:52 AM

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.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 24 Aug 2016, 06:46 AM
Hi Mark,

I have tested your Grid configuration locally with different model and everything is working correctly, so I could only assume that the issue is due to some other configuration in your scenario. Since we are not able to replicate such error locally, could you please open a regular support ticket and attach a sample, runnable project replicating the problem, so we can test it on our side. 


Best Regards,
Konstantin Dikov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or