how to bind extra parameter on kendo multi select to pass onChange event -
hi totaly new in kendo
try kendo multiselect widgets
here demo
in demo
$("#select").kendomultiselect({ datatextfield: "text", datavaluefield: "value", datasource: data, databound: ondatabound, change: onchange, })
when change fire want pass 1 parameter contain 1 one variable myvartext
.
how can pass on change event.
thanks.
where 1 variable comes ?
1) if var outside multiselect access shown bellow, no need pass it
$("#select").kendomultiselect({ datatextfield: "text", datavaluefield: "value", datasource: data, databound: ondatabound, change: function(e) { myvartext }, })
2) if var related multiselect, eg in datasource, try "e" or access instance of control
var mymultisel = $("#select").kendomultiselect({ datatextfield: "text", datavaluefield: "value", datasource: data, databound: ondatabound, change: onchange }).data("kendomultiselect"); function onchange(e) { var x = mymultisel.datasource. ... var y = e. .. }
Comments
Post a Comment