Hi,
I have a grid which has column groups, I am trying to change the position of a column on runtime on click of a button but it gives me error.
Below is my code. I have read at few places that its not possible, is there any alternate way to achieve it.
<
ColumnGroups
><
br
> <
telerik:GridColumnGroup
HeaderText
=
"Group 1"
Name
=
"Group1"
></
telerik:GridColumnGroup
><
br
> <
telerik:GridColumnGroup
HeaderText
=
"Group 2"
Name
=
"Group2"
></
telerik:GridColumnGroup
><
br
> </
ColumnGroups
><
br
> <
ColumnGroups
><
br
> <
telerik:GridColumnGroup
HeaderText
=
"Group 4"
Name
=
"Group3"
ParentGroupName
=
"Group1"
></
telerik:GridColumnGroup
><
br
> <
telerik:GridColumnGroup
HeaderText
=
"Group 5"
Name
=
"Group4"
ParentGroupName
=
"Group1"
></
telerik:GridColumnGroup
><
br
> <
telerik:GridColumnGroup
HeaderText
=
"Group 6"
Name
=
"Group5"
ParentGroupName
=
"Group2"
></
telerik:GridColumnGroup
><
br
> </
ColumnGroups
><
br
> <
Columns
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"PO Date"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Submittal Package"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Returned Submittals"
ColumnGroupName
=
"Group3"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Release Date"
ColumnGroupName
=
"Group3"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Confirmation Dwgs"
ColumnGroupName
=
"Group3"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Construction Dwgs"
ColumnGroupName
=
"Group4"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Inspect/Witness Test"
ColumnGroupName
=
"Group4"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Shipment"
ColumnGroupName
=
"Group5"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Weeks PO-Ship"
ColumnGroupName
=
"Group5"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"O/M Manuals"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"O/M Manuals"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Dynamic Column1"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Dynamic Column2"
></
telerik:GridBoundColumn
><
br
> <
telerik:GridBoundColumn
HeaderText
=
"Dynamic Column3"
></
telerik:GridBoundColumn
><
br
><
br
> </
Columns
><
br
><
br
> </
MasterTableView
><
br
> </
telerik:RadGrid
>