c# - Custom Directive to replicate VB .net functionality For matching names in datasource -
i new angularjs , web api although have worked in vb.net desktop applications. have function matches available results in data source (from left right). code function
public sub combo_keyup(byval cmb combobox, byval e keyeventargs) dim typtext string dim ifoundi integer dim ofounditem object dim sfoundtext string dim sappendtext string select case e.keycode case keys.back, keys.left, keys.right, keys.up, keys.delete, keys.down, keys.enter, keys.tab return end select typtext = cmb.text ifoundi = cmb.findstring(typtext) if ifoundi >= 0 ofounditem = cmb.items(ifoundi) sfoundtext = cmb.getitemtext(ofounditem) sappendtext = sfoundtext.substring(typtext.length) cmb.text = typtext & sappendtext cmb.selectionstart = typtext.length cmb.selectionlength = sappendtext.length end if end sub
what need perform same functionality angularjs web api. of functionality directive not match left right shows results having particular string.
Comments
Post a Comment