ngAfterViewInit(): void {
// Reordering columns can fail if done before the current Angular digest cycle is complete,
// therefore, set timeout with 0 seconds so that it fires immediately after the digest cycle:
setTimeout(() => {
this.restoreColumnsFromCache(this.StorageName);
});
this.subscribeToColVisibilityChange();
}
public subscribeToColVisibilityChange(): void {
this._colVisibilityChangeSub = this.grid.columnVisibilityChange.subscribe(
($event: ColumnVisibilityChangeEvent) => {
this.cacheColumnsState(
{
changedColumns: $event.columns
},
this.StorageName
);
}
);
}
public restoreColumnsFromCache(storageName: string): void {
this._suppressReorderHandler = true;
const columns = localStorage.getItem(storageName);
if (columns) {
// Column reordering is buggy when hidden columns exist.
// Show all columns until we're done reordering:
this.grid.columns.forEach(c => c.hidden = false);
setTimeout(() => {
// Reorder columns:
const columnsParsed: ColumnInfo[] = JSON.parse(columns);
columnsParsed.forEach((ci: ColumnInfo, index: number) => {
const gridColumn = this.grid.columns.find((gridCol: any) => gridCol.title === ci.title);
if (gridColumn) {
this.grid.reorderColumn(gridColumn, index);
}
});
// Restore column hidden states:
this.grid.columns.forEach(c => {
const cachedColumn = columnsParsed.find(cachedCol => cachedCol.title === c.title);
c.hidden = cachedColumn ? !cachedColumn.isVisible : false;
});
this._suppressReorderHandler = false;
});
} else {
this._suppressReorderHandler = false;
}
}Hi Team,
I'm creating one module to apply the style dynamically.
In that I'm using form as reactive form.
I used Kendo Button Group to select font weight & style like bold, italic and underline.
For the same I used BIU as different button in button group.
But I'm not able to apply the formControlName.
How can I do that?

Hi Team,
In kendo-grid kendo-grid-column already added but i have added more columns that is received from API now i have pass that dynamic data in child component but in my case its generating but issue is that component data not rendered in view.can anybody tell me how to do it?
<kendo-grid [reorderable]="true" [ngClass]="{gridloading:gridLoadingEnabled == true}"
[kendoGridBinding]="data" [loading]="gridLoadingEnabled"
[resizable]="true">
<kendo-grid-column field="TaxPercent" title="{{'CommonPercentage' | translate}}"></kendo-grid-column>
<kendo-grid-column field="TotalLC" title="{{'CommonTotal(LC)' | translate}}"></kendo-grid-column>
<!-- Dyamically added columns-->
<app-udf-item-details [udfItemDetailData]="columnList"></app-udf-item-details>
</kendo-grid>
<!-- Child component-->
<h3 class="sub-title" >Basic Details</h3>
<div class="form-group">
<div class="col-md-6" *ngFor="let column of columnList" style="padding:4px;">
<label for="{{column.id}}" class="col-md-4 control-label">{{column.name}}</label>
<div class="col-md-8">
<input type="text"
name="{{column.id}}" class="form-control" id="{{column.id}"
disabled>
</div>
</div>
</div>
Hi,
Not able to install kendo theme bootstrap. What is wrong with me
Hi,
When using Material theme with kendo grid, there's no border between columns. When doing column resizing, only column header has a resizer vertical line showing. Is it possible to also show a separation line between normal column cells when resizing columns? How to customize css to achieve this?
Thanks,
Randy

Hi Guys,
Why does the kendo-grid-column-chooser component not fire dataStateChange so any changes to selected columns can be persisted?
On my grid I have the following command:
(dataStateChange)="dataStateChange($event)"
And I have even tried:
<kendo-grid-column-chooser (dataStateChange)="dataStateChange($event)" class="pull-right"></kendo-grid-column-chooser>But neither command fires dataStateChange from the column chooser. Is there a solution to this?
Cheers,
Bob
Given a simple sparkline with static data:
<kendo-sparkline [chartArea]="{background: ''}"
style="width:30px; height:30px;"
type="pie">
<kendo-chart-series>
<kendo-chart-series-item [data]="[1,1,1]"
[color]="['green', 'yellow', 'red']"
[labels]="['Closed', 'Doing or Done', 'To do']"
field="value"
categoryField="label">
<kendo-chart-series-item-tooltip>
<ng-template let-category="label"
let-value="value">
{{category}}: {{value}}
</ng-template>
</kendo-chart-series-item-tooltip>
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-sparkline>
Hi,
Do you have an complete sample with in same page many components like calendar, scheduler and grid dialoging together with an service ?
Regards