Mohsin Arif

Mohsin Arif

  • 295
  • 6k
  • 137.8k

How can i add selected member in duallis box?

Mar 20 2020 5:22 AM
hello guys 
 i have a bootstrapDualListbox and i have all options on left side and as user select then selected option shift in rigth side , 
 i have a query how can i added options in right side which are selected when i want to edit. 
i want to when user edit its options then edit forms show selected and non selected options. my code is below which are on MVC plsea guide me 
 
  1. <div class="dual-list-box-area mg-b-40">  
  2.                         <div class="container-fluid">  
  3.                             <div class="row">  
  4.                                 <div class="col-lg-12">  
  5.                                     <div class="sparkline10-list shadow-reset">  
  6.   
  7.                                         <div class="sparkline10-graph">  
  8.                                             <div class="basic-login-form-ad">  
  9.                                                 <div class="row">  
  10.                                                     <div class="col-lg-12">  
  11.                                                         <div class="dual-list-box-inner">  
  12.                                                             @Html.DropDownListFor(model => model.SelectList, ViewBag.Leaves as IEnumerable<SelectListItem>, new { @class = "form-control dual_select", @multiple = "multiple" })  
  13.                                                             
  14.                                                         </div>  
  15.                                                     </div>  
  16.                                                 </div>  
  17.                                             </div>  
  18.                                         </div>  
  19.                                     </div>  
  20.                                 </div>  
  21.                             </div>  
  22.                         </div>  
  23.                     </div>  
below is snpshot which i want require.