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

Telerik RadGrid - Issue with Reorder columns and postback

5 Answers 197 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 29 Jun 2012, 11:59 AM
Hi,

We have an issue with the Telerik RadGrid which we believe is linked to this post:
http://www.telerik.com/community/forums/aspnet-ajax/grid/horizontalalign-on-client-columns-reorder.aspx

We have a custom Command Item Template which contains buttons that are shown or hidden within the grid pre render event.

When reordering the columns and then clicking anything that forces an autopost back, the buttons within the command item template are all shown.

I have included a checkbox below our grid:
<asp:CheckBox runat="server" ID="chk_box" AutoPostBack="True"/>

Clicking this after reordering the columns causes the show/hide in our pre render not to have an effect on the visibility of the buttons.

The above post mentions "This is because, with client column reorder, RadGrid rebinds implicitly on the next postback." Is this a bug with the RadGrid and if so has it been fixed?

Please note that setting RadGrid.MasterTableView.ClientSettings.ReorderColumnsOnClient = "false" does not fix the issue for us.

This is an urgent issue for us and any help would be very much appreciated,

Thanks,
Ryan

5 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 02 Jul 2012, 06:29 PM
Hi,

This issue is a high priority for our business and a solution has not yet been found.

Please can you provide us with some advice regarding resolving the issue.


Thanks,

Matt
0
Maria Ilieva
Telerik team
answered on 04 Jul 2012, 11:01 AM
Hi Matt,

Please review the answer provided in the support ticket you have opened for the same issue. Test the proposed solution and verify if it helps.

All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Vishu
Top achievements
Rank 1
answered on 05 Sep 2014, 08:26 PM
Have same issue of reordering grid columns. We are saving the reordered columns as XSD in database and on page load setting the grid column orders with saved order.
Earlier this functionality was working fine but not sure why this re-ordering is broken.
We did upgrade our telerik dlls from 2012 to 2014 but that seems to be working fine in production. Have included one sample project to see the xsd values assigned to grid columns and still column order is not affected. **Here is the project.

Please provide some solution to fix this issue.
0
Vishu
Top achievements
Rank 1
answered on 09 Sep 2014, 07:01 PM
Could someone please provide an update on this?
0
Maria Ilieva
Telerik team
answered on 10 Sep 2014, 02:48 PM
Hello Vishu,

The latest version of the RadGrid control supports settings persistence only using the RadPersistenceFramework.

Therefore I would suggest you to change your logic by using the framework as shown in the online demo below:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/persisting-grid-settings/defaultcs.aspx?product=grid

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Maria Ilieva
Telerik team
Vishu
Top achievements
Rank 1
Share this question
or