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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -