Hi,
I'am trying to create a dropdownlist with a guid as id :
Dim dropDownListFor = _htmlHelper.Kendo().DropDownListFor(Of Integer)(_expression) _
.BindTo(New SelectList(_collectionValeur, "Id", "Name")) _
.HtmlAttributes(_attributsHtml)
Id is a Guid
Name is a String
But I'm having the following error :
System.InvalidOperationException: Templates can be used only with field access, property access, single dimension array index, or single-parameter custom indexer expressions.
Any help please ?
I'am trying to create a dropdownlist with a guid as id :
Dim dropDownListFor = _htmlHelper.Kendo().DropDownListFor(Of Integer)(_expression) _
.BindTo(New SelectList(_collectionValeur, "Id", "Name")) _
.HtmlAttributes(_attributsHtml)
Id is a Guid
Name is a String
But I'm having the following error :
System.InvalidOperationException: Templates can be used only with field access, property access, single dimension array index, or single-parameter custom indexer expressions.
Any help please ?