I'm using QueryCellInfo to change the style of cells in one column. Cells that contain a negative value to red and bold and those that have a threshold/caution value to yellow. This works OK except when the user filters by that column. When they do this filtering, the style information is lost. How can I get the style information to 'stick' when the user filters on the column's value?
SDSandhya D Syncfusion Team October 15, 2013 11:35 AM UTC
Thanks for your interest in syncfusion products.
We suspect that the cause of the issue might be ,because of not adding "QueryCellInfo" in post action,this can be avoided by adding " engineSource.GridModel.QueryCellInfo = QueryAction;" to your post action.Please refer the code below.
public ActionResult WebgridSample1(PagingParams args)
var data = new ProductDetails().Product.ToList();
ActionResult result = data.GridActions<Product>();
var engineSource = result as GridHtmlActionResult<Product>;