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

RadGrid templated cell breaks on pager?

3 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 26 Nov 2010, 03:41 PM
Hello, I have the following scenario:

A grid contains multiple columns. One of the columns has a custom cell template that hosts a UserControl (ascx). In this user control, there are multiple RadComboBox controls (each row needs to be able to set multiple values) and these are contained in UpdatePanels (so each UserControl can update it's content independently). Everything works fine on the initial page load, but as soon as we use the pager to go to another page, the RadComboBox's SelectedIndexChanged events are fired (debugging on the server shows that they are well received and executed), but the result is never updating in the grid proper. Firebug and Fiddler indicate that the request is working correctly, but that the result of the request is simply never being applied to the page properly.

As I stated earlier, this ONLY happens after using the pager (first / prev / next / last or directly clicking a value).

Any thoughts?

3 Answers, 1 is accepted

Sort by
0
Christian
Top achievements
Rank 1
answered on 26 Nov 2010, 03:42 PM
Before I forget, version of Telerik.Web.UI.dll is 2010.2.826.35.


Thanks.
0
Veli
Telerik team
answered on 01 Dec 2010, 02:10 PM
Hello Christian,

Paging means RadGrid rebinds. Rebinding causes all your items to be recreated, together with the controls inside. So, your user control, the combos inside and everything else in the grid items are gone and re-initialized. Thus, selected values and states are gone too. You need to persist the selected values of your combos elsewhere before RadGrid pages and then restore these values back to the combos after the grid  rebinds.

Veli
the Telerik team
Browse the vast support resources we have to jumpstart 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.
0
Christian
Top achievements
Rank 1
answered on 01 Dec 2010, 02:59 PM
Actually, I updated the version of the RadControls to 2010 Q3 and the problem resolved itself. Guess the bug was fixed in one of your patches.

Thanks for the answer!
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Christian
Top achievements
Rank 1
Veli
Telerik team
Share this question
or