This question is locked. New answers and comments are not allowed.
Hello,
I have a page which uses the VQCV (Load on Demand) mechanism from telerik with a silverlight RadGridView with Hierarchy.
I have found the "IsExpandableBehavior" somewhere on your blogs or forum and use it with success. It works fine for the first visit on the page, every row/dataItem which has childs show the expandable Icon and for thoose rows which dont have childs dont show the icon.
But if I try to do any sorting or filtering the VQCV will be triggered to releod the data for the gridView. After that reload the gridview shows in every second (alternating) row the expandable Icon. But the property which I used for the IsExpandableBehavior returns false.
I also tried to set IsExpandable in the RowLoaded event but there is another mystery, because the RowLoaded event will only be fired for the half of the rows which will be shown on the screen. Which explains why every second row has a visible Expandable Icon.
Do you know anything about such a behavior? Can you give me a solution how to hide the expandable Icons?
Here is the XAML for the RadGridView:
Kind Regards!
I have a page which uses the VQCV (Load on Demand) mechanism from telerik with a silverlight RadGridView with Hierarchy.
I have found the "IsExpandableBehavior" somewhere on your blogs or forum and use it with success. It works fine for the first visit on the page, every row/dataItem which has childs show the expandable Icon and for thoose rows which dont have childs dont show the icon.
But if I try to do any sorting or filtering the VQCV will be triggered to releod the data for the gridView. After that reload the gridview shows in every second (alternating) row the expandable Icon. But the property which I used for the IsExpandableBehavior returns false.
I also tried to set IsExpandable in the RowLoaded event but there is another mystery, because the RowLoaded event will only be fired for the half of the rows which will be shown on the screen. Which explains why every second row has a visible Expandable Icon.
Do you know anything about such a behavior? Can you give me a solution how to hide the expandable Icons?
Here is the XAML for the RadGridView:
<
tg:RadGridView
x:Name
=
"GridSectionWorklist"
Grid.Row
=
"1"
Margin
=
"0"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
AutoGenerateColumns
=
"False"
CanUserDeleteRows
=
"False"
CanUserInsertRows
=
"False"
CanUserResizeRows
=
"False"
CanUserSelect
=
"False"
DataLoadMode
=
"Synchronous"
EnableColumnVirtualization
=
"True"
EnableRowVirtualization
=
"True"
GridLinesVisibility
=
"Horizontal"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding CollectionView}"
RowLoaded
=
"gridView_RowLoaded"
Loaded
=
"GridSectionWorklist_Loaded"
RowUnloaded
=
"GridSectionWorklist_RowUnloaded"
ReorderColumnsMode
=
"DropIndicator"
RowIndicatorVisibility
=
"Collapsed"
DataLoading
=
"GridSectionWorklist_DataLoading"
DataLoaded
=
"GridSectionWorklist_DataLoaded"
RowIsExpandedChanged
=
"GridSectionWorklist_RowIsExpandedChanged"
RowIsExpandedChanging
=
"GridSectionWorklist_RowIsExpandedChanging"
ScrollMode
=
"RealTime"
ShowColumnFooters
=
"True"
>
<
swi:Interaction.Behaviors
>
<
CustomTelerik:IsExpandableBehavior
IsExpandableSourcePropertyName
=
"HaveRevisions"
/>
</
swi:Interaction.Behaviors
>
<
tg:RadGridView.Columns
>
<!-- columns ... -->
</
tg:RadGridView.Columns
>
<
tg:RadGridView.ChildTableDefinitions
>
<
tg:GridViewTableDefinition
/>
</
tg:RadGridView.ChildTableDefinitions
>
<
tg:RadGridView.HierarchyChildTemplate
>
<
DataTemplate
>
<
tg:RadGridView.ChildTableDefinitions
>
<
tg:GridViewTableDefinition
/>
</
tg:RadGridView.ChildTableDefinitions
>
<
tg:RadGridView.HierarchyChildTemplate
>
<
DataTemplate
>
<
tg:RadGridView
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding NewerRevisions}"
RowIndicatorVisibility
=
"Collapsed"
RowLoaded
=
"RadGridView_RowLoaded"
ShowGroupPanel
=
"False"
>
<
tg:RadGridView.ChildTableDefinitions
>
<
tg:GridViewTableDefinition
/>
</
tg:RadGridView.ChildTableDefinitions
>
<
tg:RadGridView.Columns
>
<!-- columns ... -->
</
tg:RadGridView.Columns
>
</
tg:RadGridView
>
</
DataTemplate
>
</
tg:RadGridView.HierarchyChildTemplate
>
</
tg:RadGridView
>
Kind Regards!