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

Row error indicator visibility

1 Answer 139 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Antti
Top achievements
Rank 1
Antti asked on 19 Dec 2011, 02:30 PM

Hi,

In the grid the RowIndicatorVisibility property is set to Visible. Is the row error indicator in the row header supposed to be visible only when SelectionUnit is set to FullRow? Because the moment I set SelectionUnit to Cell, the row indicators disappear from the row indicator column. Is there any way to get row error indicators to be visible also when SelectionUnit is Cell?

Regards,
Antti

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 22 Dec 2011, 02:33 PM
Hello Antti,

RadGridView's internal logic that changes a row's state to invalid has a condition that requires row's DisplayVisualCues property to have a "True" value. DisplayVisualCues is set to false when you SelectionUnit is different from "FullRow". However, you can try using VisualStateManager.GoToState method to force the row to enter its "Invalid" state like this:
VisualStateManager.GoToState(row, "Invalid", false);


Greetings,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
GridView
Asked by
Antti
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or