Hi,
I am writting the control Template of HeaderPrefixArea as below:
<Style TargetType="{x:Type igDP:HeaderPrefixArea}"><Setter Property="Visibility" Value="Visible"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:HeaderPrefixArea}">
<Grid> <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" /></Grid>
</ControlTemplate></Setter.Value></Setter></Style>
Now if I set HeaderPrefixAreaDisplayMode="FieldChooserButton", it is not appeared at all in the prefix area.
<eclp:EclpGrid.FieldLayoutSettings><igDP:FieldLayoutSettings SelectionTypeRecord="Single" AutoGenerateFields="False" HighlightAlternateRecords="True" HeaderPrefixAreaDisplayMode="FieldChooserButton" ></igDP:FieldLayoutSettings></eclp:EclpGrid.FieldLayoutSettings><eclp:EclpGrid.FieldLayouts>
If I comment the Style, it works. Kindly suggest.
Hi, Alex:
It works. Thanks a lot.
Hello,
Have you tried setting the RecordSelectorExtent property of the FieldLayoutSettings?
xamDataGrid1.FieldLayoutSettings.RecordSelectorExtent = 300d;
Hi, Ritesh:
Thanks a lot for the reply. I am using the default style but I could not change the width of "HeaderPrefixArea". Now I have two icons squeezed into a small area which makes it pretty hard to see them.
Alex, any suggestions for the problem? Basically I need to widen HeaderPrefixArea using styles.
I proceeded as per the suggestion from Alex & default style could be found in DataPresenterGeneric_Express.xaml file.
Could you please share the template with me? I tried to put both a checkbox and the field chooser inside HeaderPrefixArea but I can not let both of them displayed. The width of the header is too narrow.
Any help is highly appreciate.
Bo