Problem with ListView TagName

2 posts, 0 answers
  1. Luca
    Luca avatar
    6 posts
    Member since:
    Jul 2012

    Posted 04 Oct Link to this post

    I am using a ListView on .Net Core 2.0 the problem is the TagName attribute, no matter what i write inside it, it always render inside a div, here is my code, all works as expected except the TagName. The client template works, but i have <li> inside <div> instead of <ul>, html attributes render correctly.

    Anyone knows where i am doing wrong?

    @(Html.Kendo().ListView<MyModel>()
        .Name("LV_Notifiche")
        .TagName("ul")
        .HtmlAttributes(new { @class = "dropdown-menu-list scroller", style = "height: 250px;" })
        .ClientTemplateId("notificaTemplate")
        .DataSource(dataSource => dataSource
            .Ajax()
            .ServerOperation(false)
            .Read(read => read.Action("Notifiche_Read", "Notification"))
        )
        .Deferred()
    )
  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2083 posts

    Posted 08 Oct Link to this post

    Hi Luca,

    We are aware of this bug and we have already logged a public item, where you could follow its progress:
    Please excuse us for any inconvenience caused by this.


    Regards,
    Konstantin Dikov
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top