We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Issue activating unobstrusive mode. Controls stop showing up even after following user manual steps

Thread ID:

Created:

Updated:

Platform:

Replies:

130448 May 13,2017 02:09 PM May 16,2017 01:30 AM ASP.NET MVC 3
loading
Tags: DropDownList
Jonathan Dorval
Asked On May 13, 2017 02:09 PM

https://help.syncfusion.com/aspnetmvc/unobtrusive
I followed these steps so in my layout manager I have between head tags the followings :

@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Styles.Render("~/Content/ej/web/bootstrap-theme/ej.web.all.min.css")
@Scripts.Render("~/Scripts/ej/web/ej.web.all.min.js")


In the HTML webpage I can see both scripts, I tried swithing the order but nothing.

@Html.EJ().DropDownList(nameof(Model.DomainModel.MotherID)).Datasource(@Model.PossibleMothers).DropDownListFields(df => df.Text("Tag").Value("Id"))

Will only show a basic html input




Karthikeyan Viswanathan [Syncfusion]
Replied On May 15, 2017 04:50 AM

Hi Jonathan, 

Thanks for contacting Syncfusion support. 

We suspect that you missed to add the ej.unobtrusive.js file for unobtrusive mode rendering. Please refer to the below code example: 

<code> 

    @Styles.Render("~/Content/ej/web/default-theme/ej.web.all.min.css") 
    @Scripts.Render("~/bundles/modernizr") 
    @Scripts.Render("~/Scripts/jquery-3.1.1.min.js") 
    @Scripts.Render("~/Scripts/jsrender.min.js") 
    @Scripts.Render("~/Scripts/ej/ej.web.all.min.js") 
    @Scripts.Render("~/Scripts/ej/ej.unobtrusive.min.js") 

</code> 

Refer to the help documentation link: https://help.syncfusion.com/aspnetmvc/unobtrusive  


Regards, 
Karthikeyan V. 


Jonathan Dorval
Replied On May 15, 2017 05:51 AM

Hello! I found the problem.
By default it seems like in the mvc generated layout view, jquery is referenced at the bottom of the page.

When I moved the jquery script rendering to the top just above the syncfusion unobstrusive and ej.min it started work

Thanks for the reply !!

Keerthana Rajendran [Syncfusion]
Replied On May 16, 2017 01:30 AM

Hi Jonathan, 
 
We are happy to hear that your issue has been resolved. Please get back to us if you require any further assistance on this, we will be happy to assist you 
 
Regards, 
Keerthana. 


CONFIRMATION

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;