BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<ej-grid #grid id="gridData" [dataSource]="gridData1" [allowPaging]="true" [toolbarSettings]= "tool" (rowSelecting)= rowSelecting($event) (rowSelected)= rowSelected($event) > <e-columns> <e-column field="EmployeeID" headerText="Employee ID" width="30" textAlign="right"></e-column> <e-column field="OrderID" width="30" [isPrimaryKey]="true" textAlign="right"></e-column> <e-column field="CustomerID" headerText="Customer ID" width="30"textAlign="right"></e-column> <e-column field="ShipCity" headertext="ShipCity" width="30" textalign="right"></e-column> </e-columns> </ej-grid> </div> appComponent.ts rowSelecting(e: any){ alert("row is selecting"); } rowSelected(e: any){ alert("row is selected"); } |
Index.html <script type="text/x-jsrender" id="Refresh"> <img class="word_export" style="max-width:20px;" src="Employees/13.png" /> </script> <ej-grid #grid id="gridData" [dataSource]="gridData1" [allowPaging]="true" [toolbarSettings]= "tool" (rowSelecting)= rowSelecting($event) (rowSelected)= rowSelected($event) > <e-columns> <e-column field="EmployeeID" headerText="Employee ID" width="30" textAlign="right"></e-column> <e-column field="OrderID" width="30" [isPrimaryKey]="true" textAlign="right"></e-column> <e-column field="CustomerID" headerText="Customer ID" width="30"textAlign="right"></e-column> <e-column field="ShipCity" headertext="ShipCity" width="30" textalign="right"></e-column> </e-columns> </ej-grid> </div> public tool = { showToolbar: true, customToolbarItems: [ { templateID: "#Refresh" }] } |