Recent

Custom Controls Using Angular Material

Git Repo:  https://github.com/yawahang/ohcontrols Features DatePicker (Date Picker, Time Picker, Date Time Picker, and many more) RatingPicker (Vertical, Horizontal, Custom Icons) Select (Single Select, MultiSelect, Single Column, MultiColumn) Recursive Treeview

Kendo Excel Export

https://stackblitz.com/edit/angular-stiojo?embed=1&file=app/app.component.ts

import { Component } from "@angular/core";
import { products } from "./products";

@Component({
  selector: "my-app",

  template: `
    <button type="button" class="k-button" (click)="excelexport.save()">
      Export To Excel
    </button>

    <kendo-excelexport [data]="data" fileName="Products.xlsx" #excelexport>
      <kendo-excelexport-column *ngFor="let col of columns" [field]="col.name">
      </kendo-excelexport-column>
    </kendo-excelexport>
  `
})
export class AppComponent {
  public data: any[] = products;

  public columns = [{ name: "ProductName" }, { name: "QuantityPerUnit" }];
}




Comments

Top Posts

SQL Server Symmetric Key & Certificate based Encryption With AES_256 Algorithm

Kendo Grid Angular Column Width, minResizableWidth dynamic

Kendo Grid AutoFit Columns