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. Image for the cookie policy date

Conditional Formatting expression w logical operators bugged?

Hello.
Here is scenario:
Data source consists of n columns.
GGC consists of n-2 visible columns(subset). The two remaining columns represent condition by which all text in the row is bold by forming logical and (conjunction) expression.
It seem as example at https://help.syncfusion.com/aspnet-classic/grid/look-and-feel Conditional Formatting with logical operators.

GridConditionalFormatDescriptor gcfd1 = new GridConditionalFormatDescriptor();

gcfd1.Name = "Criteria1";

gcfd1.Expression = "[n]=2 && [n-1]=0";     // This is expression too and it does not work.

gcfd1.Expression = "[n]=2"              // This works.
OR
gcfd1.Expression = "[n-1]=0"              // This works.

GridGroupingControl1.TableDescriptor.ConditionalFormats.Add(gcfd1); // DOES THIS BY ADDING EXPRESSIONS SIMULATES LOGICAL AND?

All in all I find documentation very very lacking and I have to rely on debugger (btw. VS debugger is nothing to write home about) and trial-and-error  to get things done.


1 Reply

PS Pavithra Subramaniyam Syncfusion Team June 24, 2019 09:57 AM UTC

Hi Ivan, 
 
Thanks for contacting Syncfusion support. 
 
We have validated your query and found that the provided regular expression is invalid which is the cause of reported behavior. Please refer to the below reference link for more information. 
 
                           https://docs.microsoft.com/en-us/dotnet/standard/base-types/best-practices 
 
And we would like to let you know that this suite of ASP.NET controls which was offered as “Essential Studio for ASP.NET ” till the Volumes 1 2019 release has been marked as “Classic” and the newer set of controls powered by Essential JavaScript 1 and Essential JavaScript 2(ASP.NET with ES5) takes its place. The newer version provides several advantages over the classic edition including being purely client side rendered HTML5/JavaScript controls ,offers better performance and provides better support for touch interactivity.  
 
The newer version includes all the features that the classic version had so it should be easy to migrate if requires. The general guideline is that if you are using the classic edition of controls in existing products then you can continue to use them. However if you are starting a new project then it is recommended that you use the newer alternative available. Syncfusion will continue to maintain the support classic version of controls for several more years. We will also be happy to provide any required assistance in migrating from the classic edition. 
 
Regards, 
Pavithra S. 
 


Loader.
Live Chat Icon For mobile
Up arrow icon