Visual Studio 2017 installation

Do you have any instructions for installing EJ2 in Visual Studio 2017. I started with the NuGet package and after creating a tsconfig.json got this to work in a new project. However I have a few other problems.
- I want to use the Gantt specific scripts rather than the all scripts.
- I need initially to have some pages continuing to use EJ1 alongside newer pages with EJ2.

When I add the EJ2 scripts to my existing project I get errors with all the import statements in the .d.ts files.

Once I get this working I need to move the whole thing into SharePoint, so I would like to get it working and understood before moving to SharePoint..

6 Replies

PP Pooja Priya Krishna Moorthy Syncfusion Team March 20, 2020 01:39 PM UTC

Hi Martin, 
Please share below details, 
  1. Are you using typescript framework or asp.net core framework along with typescript.
  2. Also please share the screenshot of the error you are facing, else please share us the issue reproduceable sample.
It will be very helpful for us,  to provide you a proper solution, if you share us the above details with us. 

Note: Some of the CSS class names are similar in both EJ1 and EJ2 controls, it may have chances for theme conflict issues. Hence, we recommended you to use compatibility themes to avoid such conflicts.   
Please refer following link to know more about compatibility theme,   

Regards, 
Pooja K. 



MP Martin Pamplin March 23, 2020 09:21 AM UTC

The BrightWork product runs in SharePoint where we have 3 Visual Studio solutions, one of which contains just the client scripts.

My initials testing is in a simple VS empty web project. I added ej2 using NuGet and added a tsconfig ( target: es2015 ) to build a Gantt page. This works in Edge, Chrome, Firefox & Brave. But fails on MS Internet Explorer ( which is the recommended browser for SharePoint ).

I took a step back and wrote a simple page to execute a window.alert only and cannot get this to work in IE.

Your online & local demos work file, what am I missing? How do I get this working on Internet Explorer?


MP Martin Pamplin March 23, 2020 10:32 AM UTC

I think I have found the answer. I now have two tsconfig files. One for EJ2 with the target: ES2015 setting and one at project level to set all my normal defaults.

Thanks for your help and patience.


MP Martin Pamplin March 23, 2020 10:47 AM UTC

Too quick there, it worked in my simple test case, but not when I try and use the Gantt control.


MP Martin Pamplin March 24, 2020 10:40 AM UTC

Has anyone tried using EJ2 with SharePoint? I have added a tsconfig to the ej2 folder as suggested but it now objects to the MS supplied SharePoint .d.ts files ( 300 + errors ). Some time ago you built a SharePoint installation to test some of my issues with es1 kanban boards, is this still available?


KR Karthikeyan Raja Syncfusion Team March 24, 2020 03:59 PM UTC

Hi Martin,  
  
We have analyzed your query. Our EJ2 components are supported only in modern browsers. So kindly ensure whether you have MS Internet Explorer version 11 +. More over  IE 11 requires polyfills to support our EJ2 components. Please find the documentation link for further reference,  
  
Please add the required configuration and ensure the sample and please get back to us, if you need any further assistance on this. 
 
More over we do not have sample for EJ1 kanban in sharepoint. But we already have an documentation to use EJ2 components with sharepoint. Please find the documentation from below link, 
 
Regards, 
Karthikeyan Raja 


Loader.
Up arrow icon