Bug GroupByControlVisibility don't update Button.Visibility


i've binded the property "GroupByControlVisibility" to a property in my ViewModel. But if changing the value, the Button for Group isn't displayed:
Value = false:
Value = true:


juergschweigi wrote Jan 7 at 12:45 PM

I solve the issue für These changes in DataGrid.Generic.xaml:
<ContentControl x:Name="btnGroupBy" DockPanel.Dock="Right" Height="10" Width="10" Margin="3" Visibility="{Binding RelativeSource={RelativeSource AncestorType=ExtendedGridControl:ExtendedDataGridJS}, Path=GroupByControlVisibility}">
                                            <MultiBinding  Converter="{StaticResource GroupByButtonVisibilityConverter}" UpdateSourceTrigger="PropertyChanged">
                                                <Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=DataGridColumnHeader}"/>
                                                <Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ExtendedGridControl:ExtendedDataGridJS}" Path="GroupByCollection"/>
                                                <Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=ExtendedGridControl:ExtendedDataGridJS}"/>

bpoojary wrote Jan 9 at 3:09 PM

GroupByControlVisibility is not boolean varaible try to bind Visbility value instead of setting true or false.

like GroupByControlVisibility="Collapsed"

I am afraid if there is any major release again may be in future your code will be overridden and you will have to do this thing again.

wrote Jan 9 at 3:10 PM

juergschweigi wrote Jan 9 at 4:14 PM

Hi bpoojary,
thanks for your answer and your advice. Great Job from you with this Control.

But I binded the GroupByControlVisibility with my Property in ViewModel while using a Bool2VisibiltyConverter:
GroupByControlVisibility="{Binding Path=IsShowGroupControl, Converter={StaticResource BoolToVisibleOrCollapsed}}" and it work great without the MultibindingConverter.

In advance I've added a CloseButton in the PopUp for the Filtering in the right top corner, because the popup didn'nt Close when stays open and clicking into the grid.
Now the user can Close PopUp with this Button.