Hello,
I new to xamDataGrid so please bear with me. I am experiencing some weird behaviour with the field chooser. The grid has a number of hidden fields. When the field chooser is opened the visible fields are displayed but the names of the hidden fields are not. A check box is rendered for the respective hidden fields, however, the name only appears after a checkbox has been selected.
All other functionaliy seems to be working ok. I just can't figure out why it isn't showing the field names.
Here is the declaration for my field chooser in xaml.
<igDP:FieldChooser Width="180"
x:Name="fieldChooser"
AllCurrentFieldsVisible="True"
Margin="2,2,2,10"
FieldDisplayOrder="SameAsDataPresenter"
FieldGroupSelectorVisibility="Collapsed"
Visibility="Collapsed"
DockPanel.Dock="Left"/>
Any assistance would be appreciated. Thanks.
Steve
Same issue for me. Did you find a solution?
Thanks
Hi goupil,
we are still scratching our heads on this one. I'm glad to see that we are not the only ones with this issue. Maybe this will give Infragistics a bit of incentive to look into this issue more deeply. Is it possible for any of you to share your implementation with their support team? As I already stated in my last post we are not able to.
Looking forward to seeing what happens with this...
Cheers,
I believe that there was an issue with this and we have resolved it with some of our latest service releases. Please give us the exact dll versions that you are using so that I can test this as well and experience the problem.
We are using 9.2.20092.1007 version
It appears that this issue has been resolved in version 10.1.20101.1000.
Thanks Infragistics for the fix.
Someone found a solution ?
Any solution ?
We're using the 9.2.20092.2023 version.
What we've seen is the following -- if we have a style defined outside of the XamDataGrid.Resources that is BasedOn CellValuePresenter, then the behavior is as described above.
If we move that style definition to be inside XamDataGrid.Resources, then everything is fine. I'm speculating that there's some sort of static initialization/caching going on inside of IG code where if the style is defined after IG code is executed, then it works....maybe?
Here's an example. We have DataTemplate in a resource dictionary for a view model. If we put the following style into DataTemplate.Resources, then the field chooser's labels are blank. If we move it into the XamDataGrid.Resources, then it's fine.
<Style x:Key="CustomButtonCellStyle" TargetType="{x:Type DataPresenter:CellValuePresenter}" BasedOn="{StaticResource {x:Static Infra:InfrastructureResourceKeys.DefaultGridCellStyleKey}}"> <Setter Property="BorderThickness" Value="0,0,1,1" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type DataPresenter:CellValuePresenter}"> <Controls:CardPanel> <Border x:Name="MainBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" /> <Button x:Name="_showSwapButton" ToolTip="Details" /> </Controls:CardPanel> </ControlTemplate> </Setter.Value> </Setter> </Style>
Elsewhere, in another assembly we have a resource dicationary that gets merged into App.Resources that has the following style
<Style x:Key="{x:Static Infra:InfrastructureResourceKeys.DefaultCellStyleKey}" TargetType="{x:Type DataPresenter:CellValuePresenter}" x:Shared="false"> <Setter Property="Padding" Value="2,0,0,0" /> <Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type DataPresenter:CellValuePresenter}"> <Controls:CardPanel> <Border x:Name="MainBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" /> <ContentPresenter x:Name="PART_EditorSite" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" /> </Controls:CardPanel> </ControlTemplate> </Setter.Value> </Setter> </Style>
This is urgent for us and we need a fix ASAP.
Is the problem come with our version? Is it solved with the last update?