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.
Unfortunately, activation email could not send to your email. Please try again.

QueryCellInfo and Filtering

Thread ID:





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

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 07:35 AM

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.

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.