i have devexpress combobx in view:
html.devexpress().combobox(s => { s.name = idpola; s.style.add("float", "left"); foreach (selectlistitem item in list) { s.properties.items.add(new listedititem() { text = item.text, value = item.value, selected = item.value == selectedvalue }); } s.selectedindex = selectedindex; s.properties.incrementalfilteringmode = incrementalfilteringmode.startswith; s.clientvisible = controlvisible; if (model.alternative) { s.properties.clientsideevents.selectedindexchanged = "function(s, e){ffff(s)}"; } else { s.properties.clientsideevents.selectedindexchanged = "function(s, e){hidetextbox(s,e)}"; } s.properties.enableclientsideapi = true; }).render();
how id of selected item using javascript in hidetextbox function?
use client-side getvalue method:
function hidetextbox(s, e) { //s == combobox var value = s.getvalue(); alert(value); }
Comments
Post a Comment