or
<
telerik:RadGridView
x:Name
=
"rgvAttributes"
AutoGenerateColumns
=
"False"
CanUserDeleteRows
=
"False"
IsReadOnlyBinding
=
"{Binding IsEditAttributesGrid,Mode=TwoWay}"
ItemsSource
=
"{Binding ListEntries}"
SelectedItem
=
"{Binding SelectedAttribute, Mode=TwoWay}"
SelectionMode
=
"Single"
>
<
i:Interaction.Behaviors
>
<
helper:IsExpandableBehavior
IsExpandableSourcePropertyName
=
"IsExpandable"
/>
</
i:Interaction.Behaviors
>
<
telerik:RadGridView.ChildTableDefinitions
>
<
telerik:GridViewTableDefinition
/>
</
telerik:RadGridView.ChildTableDefinitions
>
<
telerik:RadGridView.Columns
>
[...]
</
telerik:RadGridView.Columns
>
<
telerik:RadGridView.HierarchyChildTemplate
>
<
DataTemplate
>
<
Control:ContentStepVisualizer
/>
</
DataTemplate
>
</
telerik:RadGridView.HierarchyChildTemplate
>
</
telerik:RadGridView
>
When calling ExpandAllHierarchyItems() on the RadGridView, every hidden Expand/Collapse Hierarchy buttons appears back and every row expands.
It seems that the ExpandAllHierarchyItems() of RadGridView methods doesn't consider the state of the "IsExpandable" property before expanding a GridViewRow.
Is this the desired behavior or I have done something wrong provoking it ?
Many thanks for your help !
TheFlo
Regards,
Kshamesh
var rows =
this
.gridAlarm.ChildrenOfType<GridViewRow>();
foreach
(var row
in
rows)
{
if
(row
is
GridViewNewRow)
continue
;
if
(row.IsVisible)
logger.Debug(
"It's a visible row"
);
var cell = row.Cells[7];
TextBlock tx = (TextBlock)cell.Content;
String content = tx.Text;
}