|
<ej-grid id="Grid" datasource=ViewBag.parent allow-paging="true" query-cell-info="query">
......
</ej-grid>
<script type="text/javascript">
function query(args) {
var data = $(args.cell).text().split(" ");
if (data.length >= 2) {
$(args.cell).html(data[0] + "</br>" + data[1]);
}
}
</script> |
|
<script type="text/javascript">
function query(args) {
.......
if (args.column.field == "ShipCity") {
.......
}
}
}
</script> |