Hi everyone.
I already have a wrapper for "Kendo-grid" (app-data-table: it set everything about data, kind of filters (row, menu), and others) and almost work fine that all, however, when I use it in other component that insert the "kendo-grid-column" and I tried to customize a filter it start to throw errors.
Here a brief part of code:
<app-data-table *ngIf="dataTableOptions" [options]="dataTableOptions" (api)="setDataTableAPI($event)"
<kendo-grid-column field="fieldName" [title]="fieldTitle" [filterable]="true" [width]="180" filter="text">
<ng-template kendoGridFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
<kendo-grid-string-filter-menu
[column]="column"
[filter]="filter"
[filterService]="filterService">
<kendo-filter-eq-operator></kendo-filter-eq-operator>
<kendo-filter-neq-operator></kendo-filter-neq-operator>
<kendo-filter-contains-operator></kendo-filter-contains-operator>
<kendo-filter-not-contains-operator></kendo-filter-not-contains-operator>
<kendo-filter-startswith-operator></kendo-filter-startswith-operator>
<kendo-filter-endswith-operator></kendo-filter-endswith-operator>
</kendo-grid-string-filter-menu>
</ng-template>
</kendo-grid-column>
</app-data-table>
Here an image with one of the errors:
Any help, thanks?
<kendo-grid
[kendoGridBinding]="reports"
[pageable]="false"
[sortable]="true"
>
<kendo-grid-column field="quarter" title="Quarter">
</kendo-grid-column>
<kendo-grid-column field="wages" title="Total Wages" [width]="120" format="{0:c}">
</kendo-grid-column>
<kendo-grid-column field="taxable" title="Taxable Wages" [width]="120" format="{0:c}">
</kendo-grid-column>
<!-- Employer column doesn't sort -->
<kendo-grid-column field="employer" title="Employer" [width]="100">
<ng-template kendoGridCellTemplate let-dataItem>
{{ dataItem.entity?.name}}
</ng-template>
</kendo-grid-column>
</kendo-grid>
Hi There,
I'm currently trying to use the Kendo PDF Export Function using Kendo Drawing and have been struggling to split the page of dynamic widgets into 2 and it cuts off the bottom of the page and doesnt go onto a second page even when using force page break.
Is there any function to check if the page is overflowing? so I can adjust the table template with extra white space.
Or how can I amend this issue and make the page flow onto 2 pages even if the element ends up getting split in 2.
Attempt without page breaking:
const drawing = awaitdrawDOM(this.elm.nativeElement, {
paperSize: 'a4',
scale: 0.45,
});
const myData = await exportPDF(drawing);
saveAs(myData, `test.pdf`);
<div #elm >
...content...
</div>
In the image of the pdf, the bottom of the grid is cut off, then I did the same with text and the text template isnt even visible and doesnt flow onto the next page.
Attempt with Page breaking:
const drawing = awaitdrawDOM(this.elm.nativeElement, {
paperSize: 'a4',
scale: 0.45,
forcePageBreak: '.page-break',
});
const myData = await exportPDF(drawing);
saveAs(myData, `test.pdf`);
Child Component with page breaking:
<div class=".page-break"></div>
<div class="h-full flex flex-col">
...content...
</div>
Grid component with page breaking
<div class="h-full flex flex-col page-break">
<ngContainer... *gridTemplate></ng-container>
...content...
</div>
<ngTemplate #gridTemplate>
...Kendo Grid...
</ngTemplate>
I'm placing a component inside textbox and textarea suffixes:
<kendo-textarea #noteInput
[(ngModel)]="newNote"
[maxlength]="MAX_LENGTH_NOTE"
>
<kendo-textarea-suffix>
<ci-counter
[value]="noteInput.value"
[max]="noteInput.maxlength"
[displayAtThreshold]="100"
></ci-counter>
</kendo-textarea-suffix>
</kendo-textarea>
That works fine, but I'd like to remove them when the input isn't being edited. Is there any property or other way to know this through the template? Such as:
<kendo-textarea #noteInput
[(ngModel)]="newNote"
[maxlength]="MAX_LENGTH_NOTE"
>
<kendo-textarea-suffix>
<ci-counter *ngIf="noteInput.???"
[value]="noteInput.value"
[max]="noteInput.maxlength"
[displayAtThreshold]="100"
></ci-counter>
</kendo-textarea-suffix>
</kendo-textarea>
I am using DialogService in my project and add below line in root file of the application so other component don't need to add.
Now the problem is, if i opened the dialog from specific component then If I go back to previous screen then Dialog remain open.
What I found is, basically I put the div is in root file so the dialog will always reside it at root level.
right now I have a one solution is to remove that div from root file and keep it in all component file, where it is used.
If you have another solution then let me know because I don't want to put that div in all angular component.
Hey everyone,
Hope this message finds you well.
I'm creating a grid table with Add/Edit/Delete features. Currently running into a blocker when clicking on a checkbox during an Add procedure. This action completely resets the values from the dropdown menus I've previously selected from. Any ideas as to why this behavior might be occurring? Thanks!
TS:
------------------------------
HTML: