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
1440
Is there a Column Group Feature in xamDataPresenter?
posted

Hi,

I have posted the following thread to the xamDataPresenter sub forum, but seems like it's not catching attention from anybody.  I hope somebody can read it from here.

http://community.infragistics.com/forums/t/54210.aspx

Regards,

Jason

Parents
  • 1440
    posted

    Finally I have found a solution on my own.  Using RowSpan and ColumnSpan property with Unbound field can achieve that.  While setting all the "group header field" as UnBoundField with MaxCellHeight=0, now it's looking exactly how I want it to be.

    <igDP:XamDataPresenter DataSource="{Binding Path=Rows}">
                <igDP:XamDataPresenter.FieldLayoutSettings>
                    <igDP:FieldLayoutSettings AutoArrangeCells="Never" AutoGenerateFields="False"/>
                </igDP:XamDataPresenter.FieldLayoutSettings>
     
                <igDP:XamDataPresenter.FieldLayouts>
                    <igDP:FieldLayout Key="A">
     
                        <igDP:FieldLayout.FieldSettings>
                            <igDP:FieldSettings LabelClickAction="SortByOneFieldOnly" />
                        </igDP:FieldLayout.FieldSettings>
     
                        <igDP:FieldLayout.Fields>
                            <igDP:UnboundField Name="A" Row="0" Column="2" ColumnSpan="2">
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings CellMaxHeight="0" LabelClickAction="SortByMultipleFieldsTriState" />
                                </igDP:Field.Settings>
                                </igDP:UnboundField>
     
                                <igDP:UnboundField Name="B" Row="0" Column="4" ColumnSpan="2">
                                    <igDP:Field.Settings>
                                        <igDP:FieldSettings CellMaxHeight="0" LabelClickAction="SortByMultipleFieldsTriState" />
                                    </igDP:Field.Settings>
                                </igDP:UnboundField>
     
                            <igDP:Field Name="C" RowSpan="2" Column="0" >
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState" />
                                </igDP:Field.Settings>
                            </igDP:Field>
     
                            <igDP:Field Name="D" Row="0" Column="1" RowSpan="2">
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState" />
                                </igDP:Field.Settings>
                             </igDP:Field>
     
                            <igDP:Field Name="F" Width="50" Row="1" Column="3">
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState" />
                                </igDP:Field.Settings>
                            </igDP:Field>
     
                            <igDP:Field Name="G" Width="50" Row="1" Column="4">
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState" />
                                </igDP:Field.Settings>
                            </igDP:Field>
     
                            <igDP:Field Name="H" Width="50" Row="1" Column="5">
                                    <igDP:Field.Settings>
                                        <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState" />
                                    </igDP:Field.Settings>
                            </igDP:Field>
     
                        </igDP:FieldLayout.Fields>
                    </igDP:FieldLayout>
                </igDP:XamDataPresenter.FieldLayouts>
            </igDP:XamDataPresenter>

Reply Children
No Data