This is a migrated thread and some comments may be shown as answers.

Conditional Formatting Problem

2 Answers 172 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 26 Sep 2007, 05:05 AM
I'm trying to Highlight a row when Value = "Interest"

When I try and set the conditional Formatting through the gridview "Property Builder" it it for some reason highlights every row.

If how ever I add this line:
"ConditionalFormattingObject2.ConditionType = Telerik.WinControls.UI.ConditionTypes.Equal"
 to the designer.vb file it does work.

BUT when I go back into the Property builder again, when I close it that line is removed from the designer.vb file and it starts highlighting every line again.

2 Answers, 1 is accepted

Sort by
0
Tony
Top achievements
Rank 1
answered on 26 Sep 2007, 05:12 AM
To fix the second problem about how the property builder kept removing my fixed I added this line:
 Me.RadGridView1.Columns(1).ConditionalFormattingObjectList.Item(1).ConditionType = ConditionTypes.Equal
into the Form_Load Event, and this also seems to have worked as a fix, though it would be nice to just have it working directly from the property builder.

thank you    
0
Georgi
Telerik team
answered on 28 Sep 2007, 04:13 PM
Hello Tony,

Thank you for reporting this. The problem with highlighting all rows when ConditionType property is set to ConditionTypes.Equal  is a known issue. It will be corrected in the upcoming Q3 2007 SP1 release. As to the second problem that ConditionTypes.Equal value is not serialized, this is because this value is default for the ConditionType property and there is no need to be serialized.

 
Kind regards,
Georgi
the Telerik team
Tags
GridView
Asked by
Tony
Top achievements
Rank 1
Answers by
Tony
Top achievements
Rank 1
Georgi
Telerik team
Share this question
or