Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Closed Issue: GridView: feature request - Events [12322]

$
0
0
According to this issue: http://www.codeplex.com/AtlasControlToolkit/WorkItem/View.aspx?WorkItemId=4801

It will be useful to have the following events:
RowDataBound - Occurs after a row is data bound. Would like to pass data item and row (<tr>) element as eventargs.
CellDataBound - Occurs after a cell is data bound. Would like to pass data item and cell (<td>) element as eventargs.

Let's imagine the list of incoming emails.
I'd like to apply specific background-color to table row if the mail is unread. So RowDataBound event will be used: in its handler I'll write something like this:
if (!e.dataItem.isRead)
{
e.row.style.backgroundColor = "blue";
}

Also I'd like to set the specific font for "Subject" cell if the mail is received less than 6 hours ago. Here CellDataBound event will be used: in its handler I'll write this:
if ((new Date()).valueOf() - e.dataItem.deliveryDate.valueOf() < 6*60*60*1000)
{
e.cell.style.fontWeight = "bold";
e.cell.style.color = "red";
}
Comments: GridView control does not exist in the current v15.1 version of Ajax Control Toolkit.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>