This is a migrated thread and some comments may be shown as answers.
Grouping groups the wrong column
2 Answers 29 Views
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 17 Jul 2008, 02:47 PM
Hi,
  I've been testing the trial version of RADControls for a project we're designing, and a large part of our project is the use of Grids.  I've set my grid up as follows:

<telerik:RadGrid ID="_gridSPMIG" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" Skin="Telerik" PageSize="25" OnPageSizeChanged="OnPageSizeChanged" ShowGroupPanel="True"
            <MasterTableView TableLayout="Fixed"
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="SPIN" HeaderText="SPIN" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Suffix" HeaderText="Suffix" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Nomenclature" HeaderText="Nomenclature" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Modifier" HeaderText="Modifier" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Category" HeaderText="Category" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="APL" HeaderText="APL" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Part No." HeaderText="Part Number" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SCAT Code" HeaderText="SCATCD" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="scat_ds" HeaderText="SCAT" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="NIIN" HeaderText="NIIN" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Cage" HeaderText="Cage" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Remarks" HeaderText="Remarks" UniqueName="column"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ui_ds" HeaderText="Unit of Issue" UniqueName="column"
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings AllowDragToGroup="True"
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                <Resizing AllowColumnResize="True" /> 
            </ClientSettings> 
            <PagerStyle Wrap="True" /> 
        </telerik:RadGrid> 


The issue is when I go to group by a column, I'll drag a column to the group panel, and it doesn't group by that column.  Instead, it groups by first column in the grid and won't allow me to add any other columns.  Is there something I'm missing when configuring the grid?

Thanks,
Kevin Griffin

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 18 Jul 2008, 05:02 AM
Hi Kevin,

This is caused by the identical names of all columns. The columns are grouped by UniqueName and it should be different for each column.

Kind Regards,
Daniel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shinu
Top achievements
Rank 1
answered on 18 Jul 2008, 05:52 AM
Hi Kevin,

Also try binding the Grid using AdvanceDataBinding techniques.
Advanced data-binding

Thanks
Shinu.
Tags
Grid
Asked by
Kevin
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Shinu
Top achievements
Rank 1
Share this question
or