Hi,
I learnt about the DataBarConditionalFormatting http://help.infragistics.com/Help/NetAdvantage/Silverlight/2012.1/CLR4.0/html/xamGrid_Conditional_Formatting.html but failed to understand how to extend and use it so that i could set the bar to a certain size. In my case i want to compare a double cell value against another cell show by how much one value bigger than the other in relative percentage terms, i want to represent this info as a data bar on the cell background (something how "unit stocks" column in the first screenshot in the above link depicts).
I can probably do that with a rectangle and a custom style, but if there is already pre built style with xamgrid then it would make it easier. Could you please give me a hint or an example if possible how i can leverage?
Hello Rohit,
The ConditionalFormatting is functionality that is provided with the XamGrid and could be used directly, no need add rectangles and custom styles to the cells. In the attached project DataBarConditionalFormatting rule is applied for a column that contains int values. The bar width is a visual representation of the value. If the value is low, the bar is smaller. You could change the look of the bar using properties like DataBarDirection, DataBrush, etc.
Please feel free to let me know if this is what you are looking for or I have misunderstood something in your scenario.
Hi Maria,
I am sorry what you described is what i could see in the samples and the link i gave above as well.
As i explained previously What I want is to show the Bar in "RELATIVE TERMS" i.e. as a percentage and not the value itself.
For example if i have two columns Age and MaxAge, I want to show by how much (relatively) Age exceeds MaxAge (if it does not exceed that conditional formatting should not be applied), i want to plot this in relative percentage as a bar graph on the Age column
see attached screenshot