|
$('#role').ejListBox({
dataSource: dataroles,
fields: { text: "CustomerID" ,value:"Address"},
allowMultiSelection: true,
itemsCount: 3,
create: "oncreate"
});
function oncreate(args) {
this.scrollerObj.refresh(); // manually refresh only the scroller object of the Listbox
} |
|
Autodatas.Create.cshtml
$('#myModal').on('shown.bs.modal', function (e) { // Event triggered after opened bootstrap modal
$("#Roles").ejListBox("refresh", true); // Refresh the listbox
}); |