We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

QueryCellInfo and Filtering

Thread ID:





113883 Oct 14,2013 09:22 PM UTC Oct 15,2013 11:35 AM UTC ASP.NET MVC (Classic) 1
Tags: Grid
Frank Carr
Asked On October 14, 2013 09:22 PM UTC

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?

Sandhya D [Syncfusion]
Replied On October 15, 2013 11:35 AM UTC

Hi frank,

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>;
            engineSource.GridModel.QueryCellInfo = QueryAction;
            return engineSource;

We have attached sample for your reference.Please get back to us if you need further assistance.





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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon