Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146790 | Aug 20,2019 09:46 AM UTC | Aug 22,2019 05:14 AM UTC | ASP.NET Web Forms | 3 |
![]() |
Tags: Grid |
<ej:Grid ID="FlatGrid" runat="server" AllowPaging="True" AllowScrolling="True" AllowFiltering="False" AllowReordering="False" AllowSorting="True" AllowSelection="True" Selectiontype="Multiple" >
<ClientSideEvents QueryCellInfo="queryCellInfo" />
<Columns>
<ej:Column Field="Id" HeaderText="Order ID" Width="90" IsPrimaryKey="True" Visible="false" />
<ej:Column Field="Name" HeaderText="Customer ID" Width="85"/>
<ej:Column Field="Freight" HeaderText="Employee ID" Format="{0:C}" Width="70"/>
</Columns>
</ej:Grid>
<script>
function queryCellInfo(args) {
if (args.column.field == "Freight") {
if (args.cell.textContent == null || args.cell.textContent == "") {
var val = "$0:0";
args.cell.textContent = val;
}
}
}
</script>
|
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.