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. Image for the cookie policy date

Problem about custom script generator

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.

3 Replies

KR Keerthana Rajendran Syncfusion Team 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.   
   
 



JL Jemmy Lu August 11, 2016 04:30 PM UTC

thanks!finally I decided to combine scripts to one


KR Keerthana Rajendran Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon