Hi
I am using the ASP.Net Ajax RadGrid control in a new web application. For this grid I need to apply conditional cell formatting while user should be able to sort the grid. The example I found in RadGrid documentation (http://www.telerik.com/help/aspnet-ajax/grid-appearance-conditional-formatting.html) works using ItemDataBound event hanlder but only when the grid loads firs time but as soon as I click on a column header to sort a column, grid loads with new set of data without calling ItemDataBound even handler and cells lose their formatting.
I hook up the ItemDataBound event handler in Page_Load as below:
Is there another way to keep the conditional formatting while allowing to sort, group, etc.?
I appreciate your help in advance.
Thanks
Ron Farko
I am using the ASP.Net Ajax RadGrid control in a new web application. For this grid I need to apply conditional cell formatting while user should be able to sort the grid. The example I found in RadGrid documentation (http://www.telerik.com/help/aspnet-ajax/grid-appearance-conditional-formatting.html) works using ItemDataBound event hanlder but only when the grid loads firs time but as soon as I click on a column header to sort a column, grid loads with new set of data without calling ItemDataBound even handler and cells lose their formatting.
I hook up the ItemDataBound event handler in Page_Load as below:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
SummaryGrid.ItemDataBound +=new GridItemEventHandler(SummaryGrid_ItemDataBound);
...
}
}
Is there another way to keep the conditional formatting while allowing to sort, group, etc.?
I appreciate your help in advance.
Thanks
Ron Farko