Hi,
I apologize if I missed answer to this somewhere, but I have to provide quick answer to my superiors.
We plan to start migrating from Kendo UI for JQuery to Angular, and one of key widgets is Gantt chart.
Is there plan to implement gantt chart to Angular at all, and if yes, what could be provisional time for this.
Thank you very much
Best regards,
Vedad
Hello,
I have the Amount column in my grid which is multiply price and quantity fields from data source.
<kendo-grid-column title="Amount" editable="false" width="120">
<ng-template kendoGridCellTemplate let-dataItem>
{{dataItem.Price * dataItem.Quantity}}
</ng-template>
</kendo-grid-column>
How can I add Total of this amount column to show in kendoGridFooterTemplate?
I don't have any group in my group, just want to show total Amount of the whole grid.
I've implemented in-cell editing with a dropdownlist using reactive forms and a cellclick event handler. How can I also automatically open/expand the dropdownlist on cell edit? The dropdownlist has a Toggle method that will open it but I can't reference the dropdownlist to invoke it. The sender of the cellclick event only includes the grid component.
Markup:
<
kendo-grid-column
field
=
"manufacturer"
title
=
"Manufacturer"
width
=
"130"
[locked]="true">
<
ng-template
kendoGridEditTemplate
let-dataItem
=
"dataItem"
let-formGroup
=
"formGroup"
>
<
kendo-dropdownlist
[data]="manufacturers"
textField
=
"text"
valueField
=
"value"
[valuePrimitive]="true" [formControl]="formGroup.get('manufacturer')">
</
kendo-dropdownlist
>
</
ng-template
>
</
kendo-grid-column
>
Script:
public cellClickHandler({ sender, rowIndex, columnIndex, dataItem, isEdited }) {
if
(!isEdited) {
sender.editCell(rowIndex, columnIndex,
this
.createFormGroup(dataItem));
}
}
Dropdownlist method I'd like to invoke on cell edit:
this
.dropdownlist.toggle(
true
);
Hello,
i add an input inside kendo stepper using the 'kendoStepperStepTemplate' option, it works fine but in FireFox , you cannot select the input
exemple :
<kendo-stepper
[steps]="steps"
[stepType]="'label'"
[currentStep]="2"
[linear]="false"
[style.width.px]="750"
>
<ng-template kendoStepperStepTemplate let-step let-index="index">
<div class='oval-step'>
<span class="{{step.icon}}"></span>
</div>
<div class='step-label'>{{step.label}}
<ng-container *ngIf="index === 1">
<input type=text value='testtt' >
</ng-container>
</div>
</ng-template>
</kendo-stepper>
Hi Team,
I am using the kendo grid in angular. I am facing one issue, whenever I change the row height ,the height of "k-height-container" doesn't change.
It only changes when the total rows is changed in grid. Is there a way to update the k-height-container height when the row height changes.
We are using min-height to set the row height and change the same whenever required.
Let say if the grid is initialized with 32px row height and we have 500 rows, so the container height is 16000px, now if change the row height to 28px, due to which ng-reflect-detail-row-height and ng-reflect-row-height both are set to 28px, but the container height is not reset to 12000px, instead it is still showing at 16000px.
Thanks,
Shivam
public onSelectionChange(event: SelectionEvent) {
if
(event.selectedCells.length ===
this
.pageSize) {
// selected all click?
this.selectedKeys= this.data.map(data => data.id);
}
if
(event.deselectedCells.length ===
this
.variableDataService.pageSize) {
// selected nothing click?
this.selectedKeys= [];
}
Hello!
I want to implement your dialog with a the CanDeactive Guard. In order to so I have implemented the CanDeactive Guard
import { CanDeactivate } from
'@angular/router'
;
import { Observable } from
'rxjs'
;
import { Injectable } from
'@angular/core'
;
export
interface
CanComponentDeactivate {
canDeactivate: () => Observable<boolean> | Promise<boolean> | boolean;
}
@Injectable({
providedIn:
'root'
,
})
export
class
CanDeactivateGuard
implements CanDeactivate<CanComponentDeactivate> {
canDeactivate(component: CanComponentDeactivate) {
return
component.canDeactivate && component.canDeactivate();
}
}
and extended my component and created the following function
canDeactivate(): Observable<boolean> | Promise<boolean> | boolean {
const
dialog: DialogRef =
this
.dialogService.open({
title:
'Please confirm'
,
content:
'Are you sure?'
,
actions: [{ text:
'No'
}, { text:
'Yes'
, primary:
true
}],
width: 450,
height: 200,
minWidth: 250,
});
if
(
this
.isInEditState) {
dialog.result.subscribe((result: any) => {
if
(result.text ===
'No'
) {
return
false
;
}
else
{
return
true
;
}
});
}
else
{
return
true
;
}
}
I get a dialog, but the result will not trigger the CanDeactive Guard (I think it is undefinied). I think he looses the scope because of the subscribe. Could you guys help me?
Best regards
Felix