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

Multiple Grids with Template Columns Lose Binding

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris Dickerson
Top achievements
Rank 2
Chris Dickerson asked on 10 Apr 2011, 08:43 PM
Controls
I have multiple RadGrid controls on a page, each grid with an ItemDatabound event. All columns are set to be sortable except for the gridTemplateColumns

Database
Each grid has their own EntityDataSource, with a single parameter set to point at a hidden control which is set at the page load.

ItemDatabound Event
The grids have GridTemplateColumns with placeholder controls of which get populated with text or images.

Problem
Clicking the header of a column (to sort by that column) will sort the grid, but the other grid loses the data in the template columns. If you click the header of a sortable column in the grid that lost it's data, the grid will return to normal and the prior grid will now lose data in it's GridTemplateColumns. This problem isn't limited to sorting, the second grid on the page has multiple pages of data, switching to another page will also cause this problem as well.

This appears to occur whether using the RadAjaxPanel or not.

Is there supposed to be a way to link the controls together so that they are aware of each other? This is quite a simple setup, the SQL or even the filter being set by the hidden control -- nothing is changing, and yet this odd behavior occurs.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 Apr 2011, 11:38 AM
Hello Chris,

I'm not completely sure if I correctly understand your problem and the exact scenario in which the problematic behavior appears. Could you please open a regular support ticket and send us sample runnable version of your project. Thus we will be able to test it locally and advise you further.

Kind regards,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Chris Dickerson
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Share this question
or