.Selectable() - Does not work

2 posts, 0 answers
  1. Mark
    Mark avatar
    90 posts
    Member since:
    Jul 2014

    Posted 22 Aug Link to this post

    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.

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 24 Aug Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top