Hello Raman,
I created a example and the details are below. Pl check if this is helpful.
I have following Grid with Tag data.
Now in my Java script code I mentioned all the required conditions as below.
1. Grid.getGridObject().setDynamicBackground(true);
2. Grid.getGridObject().setMatchColors("Green,Red");
3. Grid.getGridObject().setMatchColumns("Fan1");
4. Grid.getGridObject().setMatchValues("Integer:EXACT_MATCH:1,Integer:EXACT_MATCH:0");
5. Grid.update(true);
Statement 1 : Setting DynamicBackground color checkbox to true.
Statement 2 : Setting Match colors as Green and Red
Statement 3 : Setting Condition for Column Fan1
Statement 4 : This is the format we need to specify our condition. Integer is the type and if it is exactly Matches to 1 and 0. 1 indicates Green and 0 indicates red according to Statement 2.
Statement 5 : Update Grid with latest changes
I enclosed all this code in a function which will be called on a button click. So once the button is clicked, above code gets executed and output will be like this.
Pls find the below screenshot of the complete code.
Thanks,
Sriram