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
Post a Comment