Kendo ComboBox Change event Value method is not supported -


i have kendo combobox in editortemplate: looks this:

   @(html.kendo().combobox()    .htmlattributes(new { style = "font-size:10px; background-color: #f4f4f4;" })    .name("mybox" )    .placeholder("choose value...")    .datatextfield("name")    .datavaluefield("value")    .datasource( source =>     {        source.read( read => read.action( "getitems", "myboxcontroller" ) )            .events( e => e.change( "comboboxchanged" ) );    } ) ) 

the comboboxchanged function couldn't simpler:

function comboboxchanged(e) {     var value = this.value(); } 

but, template comes up, throws error, "object doesn't support property or method 'value'". [this indicates me that, @ least data-binding working, causing item in combobox selected.] missing? looks examples me, except, said, i'm in editortemplate, rather main view.

the comboboxchanged should wired combobox events, not combobox datasource events.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -