javascript - How do i add (add all function) on combobox mvc -


my function pass roles combobox in custom form layout combobox defined

   private list<role> getroles()     {         return db.roles.tolist();     }          //this pass list of roles front end         viewdata["roles"] = getroles(); 

custom form layout combox load list of roles database table

 @html.devexpress().combobox(comboboxsettings =>             {                 gsettings.name = "id";                 comboboxsettings.name = "roleid";                 comboboxsettings.width = 500;                 comboboxsettings.selectedindex = 1;                 comboboxsettings.properties.textfield = "name";                 comboboxsettings.properties.valuefield = "id";                 comboboxsettings.properties.dropdownstyle =                  dropdownstyle.dropdown;                 comboboxsettings.showmodelerrors = true;             }       ).bindlist(viewdata["roles"]).render(); 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -