Hi Alok,
Thank you for using Syncfusion products.
Query #1: when we are doing paging at that time grid is not displaying based on the condition.
If you are using a paging/sorting action, rebind the ConditionalFormats property again to Grid in the post action
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Index(PagingParams args)
{
IEnumerable data = new NorthwindDataContext().Orders.ToList();
ActionResult result = data.GridActions
();
// rebind the action again
var engine = result as GridHtmlActionResult;
engine.GridModel.ConditionalFormats = this.ConditionFormats;
return engine;
}
// conditions created using GridDataCondition and add the condition to GridConditionalFormatDescriptor.
private Collection> ConditionFormats
{
get
{
GridDataCondition condition3 = new GridDataCondition(c => c.OrderID) { ConditionType = GridDataConditionType.Equals, Value = 10250 };
GridConditionalFormatDescriptor rowFormat = new GridConditionalFormatDescriptor();
rowFormat.Name = "condition1";
rowFormat.Conditions.Add(condition3);
rowFormat.Cell.HtmlAttributes["style"] = "background-color:#E29100";
Collection> cf = new Collection>();
cf.Add(rowFormat);
return cf;
}
}
Please find the sample from the following link :
http://www.syncfusion.com/downloads/Support/DirectTrac/86477/Sample-900465145.zip
Please let us know if you need any further assistance.
Regards,
Eswari.S