This is a migrated thread and some comments may be shown as answers.

[Solved] RadGrid Column Reorder

2 Answers 196 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ahsan jawaid
Top achievements
Rank 1
ahsan jawaid asked on 25 Apr 2013, 12:18 PM
Hi,

I am using RadGrid, i want to place a column in between two column, i don't want to SWAP the column.
For example: If i moved 2nd column and place it on 5th column, the 2nd column should now in between 4th and 6th column, old 5th column just shift to the left.

See attached snapshots.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 26 Apr 2013, 05:53 AM
Hi,

Try setting the ColumnReorderMethod to Reorder instead of swap as shown below.

ASPX:
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" AllowPaging="True"
    GridLines="None" PageSize="10">
    <MasterTableView TableLayout="Fixed">
    </MasterTableView>
    <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder">
        <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
            AllowColumnResize="True"></Resizing>
    </ClientSettings>
    <HeaderStyle Width="100px"></HeaderStyle>
    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
</telerik:RadGrid>

Thanks,
Princy.
0
ahsan jawaid
Top achievements
Rank 1
answered on 26 Apr 2013, 02:28 PM
Thanks Princy.
It worked.
Tags
Grid
Asked by
ahsan jawaid
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
ahsan jawaid
Top achievements
Rank 1
Share this question
or