Dependencies for ListBox

Hi,

based on your sample from http://localhost:15282/listbox/methods I try to implement adding and deleting to a listbox. I've used a MVC project that was converted by your project converter. It seems that code like var target = $('#SkillSelect').data("ejListBox"); is not working, because something's missing.

If I create a new project by using Syncfusion ASP.Net MVC Application and create the same sample code, it works. And finally if I create a new MVC project use the converter and create the same sample code it won't work. Are the any steps that I have to consider after converting a project?

 I've attached the converted project, which isn't working.

Best regards,
Patrick


Attachment: Listbox2_a983c694.zip

3 Replies

AP Arun Palaniyandi Syncfusion Team June 6, 2018 03:52 PM UTC

Hi Patrick, 
 
Thanks for contacting Syncfusion Products. 
 
We have tried to replicate your issue with our project converter and hence we can replicate your mentioned issue. After validating your attached sample further, found that this issue is due to jQuery is referred twice in the layout.cshtml page. (i.e) One reference is in the <head> session and then other reference in the body session(via bundle). Hence we suggest you to remove the script in the body session to resolve this issue. Please find the code snippet for more reference.  
 
 
 
layout.cshtml 
 
    @Scripts.Render("~/bundles/jquery") // remove this script reference   
 
    @Scripts.Render("~/bundles/bootstrap") 
    @RenderSection("scripts", required: false) 
 
 
 
We have also modified your attached sample below. 
 
Please check the above shared details, sample and let us know if you need any assistance. 
 
Regards,  
Arun P.  



PR Patrick Rogalski June 7, 2018 06:45 AM UTC

Hi Arun,

thanks, that solves my issue.

Regards,
Patrick


AP Arun Palaniyandi Syncfusion Team June 8, 2018 05:56 AM UTC

Hi Patrick,  
  
Thanks for your update. 
 
We are glad that our solution has resolved your issue. 
 
Please let us know if need any further assistance. 
 
Regards, 
Arun P. 


Loader.
Up arrow icon