Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
140886 | Nov 13,2018 07:18 AM UTC | Nov 23,2018 05:39 AM UTC | ASP.NET MVC | 5 |
![]() |
Tags: ListBox |
@Html.EJ().ListBoxFor(Model => Model.Inclusions).Width("100%").Datasource(Model.Inclusions).ListBoxFields(incl => incl.Text("Label").Value("TypeOfInclusionId")).AllowDrag(true).AllowDrop(true).Enabled(true).EnablePersistence(true)
@Html.EJ().ListBoxFor(Model => Model.Exclusions).Width("100%").Datasource(Model.Exclusions).ListBoxFields(excl => excl.Text("Label").Value("TypeOfInclusionId")).AllowDrag(true).AllowDrop(true).Enabled(true).EnablePersistence(true)
When the exlusion listbox contains at least one element, then I can do the drag and drop, but when the listbox is empty (any of them), then I cannot drag from listbox inclusion and drop in listbox exclusion and vice versa.
Any idea why?
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.