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.

Themes not applied when using ASP.NET Ajax ScriptManager

Thread ID:

Created:

Updated:

Platform:

Replies:

121481 Dec 18,2015 12:33 PM May 20,2016 01:59 AM ASP.NET Web Forms 5
loading
Tags: DropDownList
rapops
Asked On December 18, 2015 12:33 PM

Hi,
Question 1:
I'm trying to use the Flat-Lime theme with all of my application's aspx page.
I need to use the ASP.NET Ajax UpdatePanel in one of them so I need to declare the ASP.NET Ajax ScriptManager for the UpdatePanel to work. But when theASP.NET Ajax ScriptManger is invoked, the theme Flat-Lime is not applied anymore to all of the Syncfusion controls on the page. Instead the Default-Theme is applied.
All script is correctly declared as follows in the master page (scripts are locally copied to the application's folder):

<link rel='nofollow' href="Content/ej/web/flat-lime/ej.web.all.min.css" rel="stylesheet" />

<script src="Scripts/ej/external/jquery-1.11.3.min.js">script>

<script src="Scripts/ej/external/jquery.easing.1.3.min.js">script>

<script src="Scripts/ej/external/jquery.globalize.min.js">script>

<script src="Scripts/ej/external/jsrender.min.js">script>

<script src="Scripts/ej/web/ej.web.all.min.js">script>

<script src="Scripts/ej/common/ej.webform.min.js">script>

What could be the problem? How to use a particular Syncfusion theme?

Question 2:

Is it mandatory to use the ASP.NET Ajax ScriptManager on all page which uses Syncfusion controls even if not usingASP.NET Ajax Updatepanel?

It seems that when the ASP.NET Ajax ScriptManageris not declared, the server side code behind of all Syncfusion control doesn't execute. For example, the code behind to handle the event OnValueSelect on a Syncfusion DropDownlist doesn't execute if the ASP.NET Ajax ScriptManager is not declared.

Thanks in advance.

Rapops


Arun Palaniyandi [Syncfusion]
Replied On December 21, 2015 05:58 AM

Hi Rapops,

Thanks for contacting Syncfusion support.

Question 1:  Flat lime theme is not referred when script manager invoked.


It seems, dependent script and CSS files are referred from both assembly and local application that’s why default theme have referred even though we referred it locally. So we suggest to set false to LoadEJResourcesFromAssembly in App Setting of web.config file which prevents that dependent files would embed from an assembly.


Please find the below web.config changes:


<appSettings>

    <add key="LoadEJResourcesFromAssembly" value="false"/>

</appSettings>


Question 2:” Is it mandatory to use the ASP.NET Ajax ScriptManager on all page which uses Syncfusion controls even if not usingASP.NET Ajax Updatepanel?


Yes, ASP Script Manager is mandatory to invoke the server side event for Syncfusion controls. So we suggest you to include ASP Script Manager by default in your master page.


Please let us know if you have any other queries.

Regards,
Arun P


Alisasmith
Replied On December 23, 2015 12:54 AM

Yeah! The ASP Script Manager is obligatory on all pages as it control oversees customer script for Microsoft ASP.NET AJAX pages. As a matter of course, the Script Manager control enrolls the script for the Microsoft AJAX Library with the page. This empowers customer script to utilize the sort framework expansions and to bolster elements, for example, Web-service calls and fractional page rendering.

Ezhil S [Syncfusion]
Replied On December 24, 2015 01:10 AM

Hi Alisasmith,

Thank you for sharing with us the details about ASP ScriptManager.

Let us know if you have any other queries. We are happy to help you out.

Regards,
Ezhil S

Gabriel Obando
Replied On May 19, 2016 04:16 PM

Hello, thanks, for this, i was having a similar problem for 2 days and didn't know how to solve it, looking through the forums I found this and this fixed my problem too.


Preethi Nesakkan Gnanadurai [Syncfusion]
Replied On May 20, 2016 01:59 AM

 
Hi Alisasmith, 
 

Thanks for your update.

We are glad to hear that your issue has been fxed.

Please let us know if you need further assistance.
 
  
Regards,  
Preethi 



 


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.

;