telerik - Kendo MultiSelect does not populate bound values -


i have multiselect belongs kendo listview editortemplates. when want submit selected multiselect values, got list of items selected, populated 0 value. cant correct value of selected items.

here listview:

@(html.kendo().listview<escms.modules.c2c.domain.c2cfieldrangelist>()   .name("listview")   .tagname("div")   .clienttemplateid("template")   .datasource(datasource => datasource       .model(model => model.id(x => x.fieldrangeid))       .pagesize(6)       .create(create => create.action("addrange", "field"))       .update(update => update.action("updaterange", "field"))       .read(read => read.action("readrange", "field", new { id = model.fieldid }))   )) 

and here editortemplates:

<table> <tr>     <td>         @html.labelfor(x => x.rangevalue)     </td>     <td>         :     </td>     <td>         @html.textboxfor(x => x.rangevalue, new { @class = "k-textbox", style = "width:180px" })         <span data-for="rangevalue" class="k-invalid-msg"></span>     </td> </tr> <tr>     <td>         @html.labelfor(x => x.selectedvalues)     </td>     <td>         :     </td>     <td>         @(html.kendo().multiselectfor(x=> x.selectedvalues)             .htmlattributes(new { style = "width:180px" })             .bindto(new selectlist(viewbag.fields, "fieldid", "title")))     </td> </tr></table> 

edit: viewbag.fields contains list of c2cfieldlist model , expect list of fieldid when submit view.

viewbag.fields = entities.c2cfield.where(x => !x.isgeneral && !x.istemp).select(x => new c2cfieldlist { title = x.title, fieldid = x.fieldid}); 

any advice helpful.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -