Hi Telerik team, I've been working on a solution requiring that the columns order can be editable, the RadGrid control we are using is on a SharePoint Webpart. We have an editor part where the page manager can edit the order of the columns. When the editing of the webpart is saved & closed the new data is passed to the RadGrid control to update. All the functionality works as expected except the order. This order is set programatically to the columns as it is configured on the editor part, we checked that the column.position is set correctly but the RadGrid is not re-ordering the columns when the Save & Close its done.
We want some support to make this work if possible.
Fun Fact: If any of the filters, grouping, or re order is done on the control (generating a Post-back) all the columns re-order with the specified order in the editor part.
Thanks in advance!!
Here is our code where we set the position of the columns:
Column column = new Column();
column.Name = ((Label) repeaterItem.FindControl("lblColumnName")).Text;
column.Id = GetColumnId(column.Name);
column.Display = ((CheckBox) repeaterItem.FindControl("chkDisplay")).Checked;
column.Position = Convert.ToInt32(((DropDownList) repeaterItem.FindControl("ColumnsDropDown")).SelectedItem.Text);
colunns.Add(column);
We set these attributes for each columns displayable on the RadGrid control.
Mr. Erwin W. B. Gutbrod
.NET/Sharepoint Developer Jr.
We want some support to make this work if possible.
Fun Fact: If any of the filters, grouping, or re order is done on the control (generating a Post-back) all the columns re-order with the specified order in the editor part.
Thanks in advance!!
Here is our code where we set the position of the columns:
Column column = new Column();
column.Name = ((Label) repeaterItem.FindControl("lblColumnName")).Text;
column.Id = GetColumnId(column.Name);
column.Display = ((CheckBox) repeaterItem.FindControl("chkDisplay")).Checked;
column.Position = Convert.ToInt32(((DropDownList) repeaterItem.FindControl("ColumnsDropDown")).SelectedItem.Text);
colunns.Add(column);
We set these attributes for each columns displayable on the RadGrid control.
Mr. Erwin W. B. Gutbrod
.NET/Sharepoint Developer Jr.