I can't export my grid to Pdf. On console, this error shows up:
TypeError: allVue.extend is not a function
at KendoDrawingAdapter.convertPageTemplateToHtml (KendoDrawingAdapter.js?cc56:50:1)
at eval (core.js?4739:362:1)
at eval (core.js?4739:466:1)
at Array.forEach (<anonymous>)
at doPageBreak (core.js?4739:465:1)
at next (core.js?4739:1168:1)
at whenImagesAreActuallyLoaded (core.js?4739:1164:1)
at handlePageBreaks (core.js?4739:450:1)
at eval (core.js?4739:308:1)
at next (core.js?4739:1168:1)
Trying to replicate the issue, I forked this working example from kendo website (https://www.telerik.com/kendo-vue-ui/components/grid/pdf/) into StackBlitz and just changed the Vue package version to the latest v2 (https://stackblitz.com/edit/twqkkz?file=src%2Fmain.vue,package.json).
By just doing that the page has broken with the following error:
TypeError: (0 , vue_1.createTextVNode) is not a function
at templateFn (main.vue:7:60)
at Object.eval (main.vue:144:1)
at eval (main.vue:170:4)
at eval (main.vue:171:3)
at eval (<anonymous>)
at Qt (webcontainer.4131d213adf6116ed795350ac232389585e09527.js:15:30145)
at webcontainer.4131d213adf6116ed795350ac232389585e09527.js:15:38799
at U (webcontainer.4131d213adf6116ed795350ac232389585e09527.js:15:13565)
at webcontainer.4131d213adf6116ed795350ac232389585e09527.js:15:13207
at Object.eval (main.js:7:36)
So I'm not sure about what is happening, but it seems to be an incompatibility issue with Vue 2.
There is a tabstip problem in ios 13.3. (iPad)
The tabstrip scroll icon is not clicked.
Click doesn't work so it's impossible to check the contents of the next tab.
Please confirm.
https://www.telerik.com/kendo-vue-ui/components/layout/tabstrip/scrollable-tabs/
After upgrading vue wrapper components from 2022.2.621 to 2023.2.606 and @progress/kendo-ui from 2022.2.621 to 2023.1.425
and our native component from 3.3.3 to 3.11.0 we are getting an error Uncaught ReferenceError: jQuery is not defined
This literary stops us from working.
Is there any solution that we can try? Thanks!
I'm trying to manually add an item to my grid's datasource, and can't seem to get it to work, but I may just be missing something fundamental with Vue components.
My grid is located in a child Vue component template, where the datasource is given to it by the parent (it's an array of objects). When it binds, it does display my two sample rows from the array, but can't get a new row to be added dynamically.
Grid:
<kendo-grid v-once ref="diagnosisCodes" :data-source="dataSource.DiagnosisCodes" :selectable="true" :scrollable="false">
<kendo-grid-column field="SequenceNumber" title="@Localizer["Sequence"]" :width="100"></kendo-grid-column>
<kendo-grid-column field="DiagnosisCode" title="@Localizer["Diagnosis Code"]" :width="140"></kendo-grid-column>
<kendo-grid-column field="Description" title="@Localizer["Description"]"></kendo-grid-column>
<kendo-grid-column :command="['destroy']" title=" " :width="120"></kendo-grid-column>
</kendo-grid>
In a method of my child component, I'm basically trying to do this, just to see if I can get a new row to appear in the grid:
const dc = <Vue>this.$refs.diagnosisCodes;
const item: any = { SequenceNumber: 3, DiagnosisCode: "M225.7", Description: "Fingers crossed" };
dc.$props.dataSource.push(item);
The console error is attached, but the error is "[Vue warn]: Error in callback for watcher "dataSource": "TypeError: dataSource.fetch is not a function". I'm new to using Kendo Vue, so if I'm doing this wrong, how can I dynamically add to my Vue grid datasource, in order to get new rows to appear?
I'm trying to export the html generated by the Kendo Vue Native Editor to a PDF document, using the Kendo Vue Native PDF Processing (I'm not using the Editor's embedded pdf export button, because I need to send this PDF to the backend).
I can't see any documentation about how to this. This is what I first tried:
const iframe = document.querySelector(".k-editor-content .k-iframe");
const htmlElementContent = iframe.contentWindow.document.querySelector("html")
savePDF(htmlElementContent, {
paperSize: "A4"
});
But then I got this error: "DOMException: Failed to execute 'insertBefore' on 'Node': Only one element on document allowed."
To bypass this error, I tried to manipulate the Iframe content first:
const iFrameDocument = document.querySelector(".k-editor-content .k-iframe").contentWindow.document;
const iFrameRootHtml = iFrameDocument.querySelector("html")
const newSection = iFrameDocument.createElement('section');
newSection.appendChild(iFrameRootHtml);
iFrameDocument.appendChild(newSection);
const newRoot = newSection.querySelector("html");
savePDF(newRoot, {
paperSize: "A4"
});
With the above code I'm able to generate an PDF, but with no embedded fonts at all. Also, if I try to drag an image into the editor (the editor transforms it into a base64 string) and then generate the PDF, I got this error: "DOMException: Failed to execute 'appendChild' on 'Node': Only one element on document allowed."
Still regarding the fonts, I'm declaring them in the style section of the html that is inside the iframe content, using the onLoaded event of the Editor (https://www.telerik.com/kendo-vue-ui/components/editor/styling-content/). I'm also declaring them on the outer content (the main website). The fonts are hosted on my own website. Still, no embedded fonts on the generated PDF.
Also, to the Telerik forum admins, I just noted that there is no tag available neither for the Native Editor or the native PDF Processing, so I'm forced to tag this question with wrong/generic tags.
Any help will be appreciated, thanks in advance.
I'm getting a handful of these errors and it causes issues with automated testing/build pipelines.
Example:
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div($drop-hint-arrow-size, 2) or calc($drop-hint-arrow-size / 2) More info and automated migrator: https://sass-lang.com/d/slash-div
I could fix them easily, but I'd rather leave the NPM packages as we received them. Are there plans to update the SCSS files for Kendo UI Vue to support the latest library expectations?
I am trying to setup a blank project using Vite and Vue 3 since Vite is suggested tooling for new Vue 3 projects.
I am getting type errors despite "skipLibCheck": true in the tsconfig.
Environment:
> node -v v16.14.2 > pnpm -v 6.32.4 > pnpm tsc -v Version 4.6.3
Reproduction steps:
... more lines...
node_modules/.pnpm/@progress+kendo-vue-popup@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-popup/dist/npm/additionalTypes.ts:9:68 - error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'. 9 export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type }; ~~~~~~~~ Found 6 errors in 3 files. Errors Files 2 node_modules/.pnpm/@progress+kendo-vue-common@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-common/dist/npm/additionalTypes.ts:9 2 node_modules/.pnpm/@progress+kendo-vue-dropdowns@3.2.4_4d853744181ba70ddba87c6a33341cef/node_modules/@progress/kendo-vue-dropdowns/dist/npm/additionalTypes.ts:9 2 node_modules/.pnpm/@progress+kendo-vue-popup@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-popup/dist/npm/additionalTypes.ts:9
Same steps, but tooltip folder in the repository root gives different errors:
node_modules/.pnpm/@progress+kendo-vue-tooltip@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-tooltip/dist/npm/additionalTypes.ts:9:10 - error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'. 9 export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type }; ~~~~~~~~~~~~~~~ node_modules/.pnpm/@progress+kendo-vue-tooltip@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-tooltip/dist/npm/additionalTypes.ts:9:68 - error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'. 9 export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type }; ~~~~~~~~ Found 2 errors in the same file, starting at: node_modules/.pnpm/@progress+kendo-vue-tooltip@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-tooltip/dist/npm/additionalTypes.ts:9
All this works in a vue cli project without issues. However, due to the size of our project, the build times are increasing. So we're looking at alternatives.
I have two questions:
We are trying to use native grid component and following the official demo documentation along with StackBlitz example.
In StackBlitz, it's throwing an Maximum call stack size exceeded. Please find the attachment.
Link: https://fmdsao--run.stackblitz.io/
Can anyone help us to resolve this issue as grid is our primary component to leverage.
I tried to export PDF with method in my project(using vue). But , the following error occurred.
ttf.js:50 Uncaught Error: Table loca not found in directory
at Directory.readTable (ttf.js:50:1)
at TTFFont.parse (ttf.js:1210:1)
at new TTFFont (ttf.js:1202:1)
at eval (core.js:267:1)
at req.onload (core.js:246:1)
How can I solve this problem?