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

Does it work with vue cli 3 ??? (no is the answer I think)

I am trying out these vue components with the current vue cli 3.
I just created two simple projects. One with Typescript enabled, one without typescript.
I then added the Getting Started ejs-grid with some features.
Conclusion:
- in the typescript project data is renderer, but none of the features (sorting, paging, filtering, .. ) are working
- with no typescript, features are working, but css is not handled correctly, so that certain buttons are not rendered correctly
I would love to use the components but when even the getting started tutorials are not working, this gives little confidence.
For reference, I include the two projects I created.
If support could have a look at it to see what is wrong with it?

Attachment: vluecli3_41751771.zip

9 Replies

MS Madhu Sudhanan P Syncfusion Team November 19, 2018 02:16 AM

Hi Stefan, 

Thanks for contacting Syncfusion support. 

Query: In the typescript project data is renderer, but none of the features (sorting, paging, filtering, .. ) are working 

Currently injecting feature modules using Provide is not working properly and we have confirmed “Providers are not accessible in vue while using providers from vue-property-decorator” as bug. For now you can specify the provide using the Component decorator as follows. 


@Component({ 
  provide: { 
    grid: [Page, Sort, Filter, Group] 
  } 
}) 
export default class HelloWorld extends Vue { 
 . . . . .  


Query: with no typescript, features are working, but css is not handled correctly, so that certain buttons are not rendered correctly 
  
From Volume 3, 2018 release, we have segregated dependent component themes from the grid styles to reduce the style bundling size and hence we need to import/refer the dependent styles individually. Please refer the below dependent component styles used by grid.  
  
  
<style lang="css"> 
@import "../node_modules/@syncfusion/ej2-base/styles/material.css"; 
@import "../node_modules/@syncfusion/ej2-vue-grids/styles/material.css"; 
@import "../node_modules/@syncfusion/ej2-buttons/styles/material.css"; 
@import "../node_modules/@syncfusion/ej2-popups/styles/material.css"; 
@import "../node_modules/@syncfusion/ej2-navigations/styles/material.css"; 
@import "../node_modules/@syncfusion/ej2-dropdowns/styles/material.css"; 
@import "../node_modules/@syncfusion/ej2-lists/styles/material.css"; 
@import "../node_modules/@syncfusion/ej2-inputs/styles/material.css"; 
@import "../node_modules/@syncfusion/ej2-calendars/styles/material.css"; 
</style> 
  

For your convenience we have also modified the typescript sample and the same can be downloaded from the below link. 


Regards, 
Madhu Sudhanan P 



SD Stefan de Vogelaere November 19, 2018 02:41 AM

Ok thanks. This sample seems to work!
I think it is necessary to change the documentation as well, certainly about the needed styles to be included and the handling of the `provide` modules.
Thanks for this!


MS Madhu Sudhanan P Syncfusion Team November 19, 2018 03:36 AM

Hi Stefan, 

Thanks for the suggestion. We will update our documentation with these changes and this will be refreshed in any of our upcoming releases. 

Regards, 
Madhu Sudhanan P  



MM Milan Michalec August 29, 2019 11:21 AM

thanks!


TS Thavasianand Sankaranarayanan Syncfusion Team August 30, 2019 01:36 AM

Hi Stefan, 
 
Thanks for your update. 
 
We will update the documentation link once it get modified from our end. 
 
Regards, 
Thavasianand S. 



MA Mark September 10, 2019 03:55 AM

Really hoping this can be done soon. I'm evaluating and it took me 1 day mucking around before I found this thread. I was about to dump what seems to be a really good grid.

Even if the documentation notes that the extra styles need to be applied if using vue-cli 3 without the working examples that would be a great start.

Regards, Mark


TS Thavasianand Sankaranarayanan Syncfusion Team September 11, 2019 05:46 AM

Hi Mark, 

We have modified the documentation in our online in the following link. 


Please let us know if you need further assistance on this. 

Regards, 
Thavasianand S. 



MA Mark September 13, 2019 02:36 AM

Great! Thanks Thavasianand.


TS Thavasianand Sankaranarayanan Syncfusion Team September 13, 2019 02:45 AM

Hi Stefan, 
 
Thanks for your update. 
 
We are happy that the problem has been resolved at your end. 
 
Regards, 
Thavasianand S.  


Loader.
Live Chat Icon For mobile
Up arrow icon