Hello
In my Vue project, I have the column configuration of a treegrid in a json file like this :
and my very simple App.vue component looks like this:
That is, I am not defining the columns on the template section. When I run the app, I get this errors:
This used to work when using version 22. But in version 23 and newer it no longer works. What modification do I need to do?
Thanks!
Attachment: TestV24_1ba7ad68.zip
Hi Ernesto,
Greetings from Syncfusion.
Further analyzing, we have confirmed this issue “Script Error throws when dataSource and columns were not defined in TreeGrid” as bug. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technical feasibility and Product Development Life Cycle ) and this issue fix was expected to be rolled out by March 20, 2024. Until then we appreciate your patience.
You can now track the status of your request, review the proposed resolution timeline, and contact us for any further inquiries through the following feedback link.
Note: To view the above feedback, kindly login into your account. You can view the feedback once the feedback status was moved from review pending.
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Note:- Once fixed, Script Error will be resolved. But Warning message will indicates in console to define either Datasource or columns. [EJ2TreeGrid.Warning]: GRID CONFIG MISSING
dataSource and columns are not provided in the grid. At least one of either must be provided for grid configuration.
Regards,
Farveen sulthana T
Ernesto,
Due to unforeseen circumstances, fix for the issue Script Error throws when dataSource and columns were not defined in TreeGrid not included in this release as promised. We are working on this high Priority and it will be included in our upcoming Patch release. Until the we appreciate your patience.
Hi Ernesto,
We appreciate your patience.
The reported issue occured when selectRow method called twice on keyboard action for both Grid and TreeGrid and now the fix for the issue “Script Error throws when dataSource and columns were not defined in TreeGrid in Vue” has been rolled out in our latest patch release (v25.1.41). So upgrade to our latest version to resolve the problem.
Sample Link:- https://stackblitz.com/edit/fzdpab-uf2fpw?file=src%2FApp.vue
Please get back to us if you need any further assistance.
Regards,
Vasu P.
Thanks a lot!
Hi Ernesto,
You're welcome!! Please get back to us if you need any other assistance.
Regards,
Getsy