Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149835 | Dec 11,2019 09:54 AM UTC | Dec 13,2019 05:38 AM UTC | JavaScript - EJ 2 | 3 |
![]() |
Tags: Grid |
Index.js
var grid = new ej.grids.Grid({
dataSource: data,
columns: [
{ field: 'OrderID', headerText: 'Order ID', width: 120 },
{ field: 'CustomerID', headerText: 'CustomerID', textAlign: 'Right', width: 125 },
{
headerText: 'Address', textAlign: 'Center',
template: '#template', width: 150
}
],
queryCellInfo : function(args){
if(args.column.headerText == 'Address'){
console.log(args);
}
},
height: 315
});
grid.appendTo('#Grid');
index.html
<div id="container">
<script id="template" type="text/x-template">
"${ShipCountry}-${ShipAddress}"
</script>
<div id="Grid"></div>
</div>
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.