Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
How I can change the IsExpandable property of one field ?
posted

Hello,

I want to modify the IsExpandable property with Converter, but i can't do it. Any idea? thanks

   <igDP:Field Name="Excepciones"  >
                            <igDP:Field.Settings>
                                <igDP:FieldSettings>
                                    <igDP:FieldSettings.CellValuePresenterStyle >
                                        <Style TargetType="{x:Type igDP:CellValuePresenter}">
                                            <!--<Setter Property="Visibility" Value="{Binding Path=DataItem, Converter={StaticResource ConvTieneHijosDos}}" />-->
                                            <!--<Setter Property="ToolTip" Value="{Binding Path=DataItem.TituloProyecto}"></Setter>-->
                                            <!--<Setter Property="Visibility" Value="{Binding Path=DataItem.TituloProyecto}"></Setter>-->
                                            <Setter Property="Visibility" Value="Collapsed" />
                                            <Setter Property="IsExpandable" Value="False" />
                                            <Style.Triggers>
                                                <!--<DataTrigger Binding="{Binding Path=DataItem, Converter={StaticResource ConvTieneHijos}}" Value="True">
                                                    <Setter Property="Visibility" Value="Visible" />
                                                </DataTrigger>
                                                <DataTrigger Binding="{Binding Path=DataItem, Converter={StaticResource ConvTieneHijos}}" Value="False">
                                                    <Setter Property="Visibility" Value="Collapsed" />
                                                </DataTrigger>-->

                                                <!--<DataTrigger Binding="{Binding Path=DataItem.EsGanadora}" Value="0">
                                                    <Setter Property="Visibility" Value="Collapsed" />
                                                </DataTrigger>-->
                                            </Style.Triggers>
                                        </Style>
                                    </igDP:FieldSettings.CellValuePresenterStyle >
                                </igDP:FieldSettings>
                           </igDP:Field.Settings>
                </igDP:Field>

  • 138253
    Offline posted

    Hello Igor,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello Igor,

     

    Thank you for your post. I have been looking into it and I can say that the CellValuePresenter class doesn’t have an IsExpandable Property. The Field class has such Property, but since the Field element is not part of the visual tree you cannot bind its Properties using the DataContext. The only way to bind it is using a StaticResource. Please let me know if you have further questions on this matter.

     

    Looking forward for your reply.