Hello guys,
i used the listview widget with a client template and a flexing layout. I set some bootstrap classes in the htmlattributes (see example), but this set no longer the item container attributes, it sets only the widget wrapper attributes.
So far I haven't even noticed that the elements are no longer flexing, so I can't say which update changed this behavior. I also tried the (new?) flex settings, but this change anything in the mvc wrapper version.
@(Html.Kendo().ListView<mmvln.Models.FormularcenterModel.FormularcenterFormularModel>(Model.FormularcenterFormulars)
.Name("listView")
.TagName("div").HtmlAttributes(new { @class = "d-flex flex-wrap" })
.Flex(x => x.Direction("column").Wrap("nowrap"))
.ClientTemplateId("formular-template")
.DataSource(dataSource => dataSource
.PageSize(8)
.ServerOperation(false)
.Sort(sort => sort.Add(m => m.Description))
)
.Events(e => e.DataBound("formularDataBound"))
.Pageable(p => p.Info(true).Input(true).Numeric(true).Refresh(true))
)
My workaround is some custom css for flexing.
#listView .k-listview-content {
display: flex;
-ms-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
}
Best regards
Christian