Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148561 | Oct 24,2019 08:00 PM UTC | Oct 25,2019 10:21 AM UTC | ASP.NET Web Forms | 1 |
![]() |
Tags: Grid |
<ej:Grid ID="FlatGrid" runat="server" AllowPaging="True"
AllowSelection="True" Selectiontype="Multiple" >
<SelectionSettings EnableToggle ="true" />
<ClientSideEvents RowDataBound="rowDataBound" />
<Columns>
<ej:Column Field="Id" HeaderText="Order ID" Width="90" IsPrimaryKey="True" Visible="false" />
. . .
</Columns>
</ej:Grid>
</div>
<script>
function rowDataBound(args) {
if (args.data.Qty == "Qty4") {
args.row.css("backgroundColor", "#F3C3C3").css("color", "black");/*custom css applied to the row */
}
else if (args.data.Qty == "Qty6") {
args.row.css("backgroundColor", "#98FB98").css("color", "black");/*custom css applied to the row */
}
}
</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.