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.
Syncfusion Feedback

Problem about custom script generator

Thread ID:

Created:

Updated:

Platform:

Replies:

125078 Jul 20,2016 07:09 AM UTC Aug 12,2016 04:50 AM UTC JavaScript 3
loading
Tags: General
Jemmy Lu
Asked On July 20, 2016 07:09 AM UTC

Hi, I just use the tool in this page http://csg.syncfusion.com/ and using ejMenu and ejDatepicker in ASP.NET MVC with angularjs but there's a problem is I have to use combined  
two js file (ejMenu+ejDatepicker) ,can't seperate load them or one of the compoment won't render,below is how scripts put;

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>            
    <script src="~/Scripts/Syncfusion/ej.widget.datepicker.js"></script>
    <script src="~/Scripts/Syncfusion/ej.widget.menu.js"></script>    
    <script src="~/Scripts/App.js"></script>    
    <script type="text/javascript" src="https://cdn.syncfusion.com/14.2.0.26/js/common/ej.widget.angular.min.js"></script>  

then the datepicker won't render but menu does,but if I use scripts below

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>            
    <script src="~/Scripts/Syncfusion/ej.widget.datepickerAndMenu.js"></script>
    <script src="~/Scripts/App.js"></script>    
    <script type="text/javascript" src="https://cdn.syncfusion.com/14.2.0.26/js/common/ej.widget.angular.min.js"></script>  

it works, so i must use the combined script? thanks.

Keerthana Rajendran [Syncfusion]
Replied On July 21, 2016 11:40 AM UTC

Hi Jemmy,   
 
Thank you for contacting Syncfusion support   
 
Query 1: Individual Script reference   
   
Solution:   
   
We were unable to reproduce the issue in our end. As you mentioned we downloaded the scripts from http://csg.syncfusion.com/ and changed its name and referred in our sample in your code. Both menu and datepicker are rendered correctly. Please refer the below given sample link   
   
<script src="~/Scripts/Syncfusion/ej.widget.datepicker.js"></script>   
    <script src="~/Scripts/Syncfusion/ej.widget.menu.js"></script>       
   
  


  
Query 2: Combined Script reference   
   
Solution:    
   
When you have to generate a scripts for two or more controls, we suggest you to select those controls from control list and generate a single script for your selected controls and refer that script in your sample as you mentioned in your code   
   
<script src="~/Scripts/Syncfusion/ej.widget.datepickerAndMenu.js"></script>   
   
Please refer the UG Link for more details   
   
   
   
Please let us know if any concern   
   
Regards,   
Keerthana.   
   
 


Jemmy Lu
Replied On August 11, 2016 04:30 PM UTC

thanks!finally I decided to combine scripts to one

Keerthana Rajendran [Syncfusion]
Replied On August 12, 2016 04:50 AM UTC

Hi Jemmy, 
  
Thank you for your update. Please contact 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.

Warning Icon 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.Close Icon

;