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

Update breaks dynamic comboboxes postback

5 Answers 68 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Bennie De Jong
Top achievements
Rank 1
Bennie De Jong asked on 14 Sep 2012, 07:18 AM
We upgraded out radcombobox component to the latest version (2012.2.724.40) last week from version 2009.3.1314.20.  And today I tested with version 2012.2.912.40.
We have comboboxes in a repeater which itself is loaded dynamically when needed. When a postback occurs and the values in the comboboxes are changed the values are retained after a postback, when the values aren't changed selectedvalue returns "" (string.empty). When I replace the old telerik dll's it works fine, the latest break this.

Our problem is simular to this problem: http://www.telerik.com/community/forums/aspnet-ajax/combobox/selectedvalue-lost-on-postback-in-dynamically-added-user-controls.aspx

5 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 18 Sep 2012, 07:18 AM
Hi Bennie,

I have already respond to a ticket, identical with this one. In order to keep the conversation consistent, I would ask you to continue our communication in the other ticket (TicketID - 605834).

Greetings,
Nencho
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
Ruben Markosyan
Top achievements
Rank 1
answered on 15 Jan 2013, 10:02 AM
Hi Nencho ,

I am upgrading one of our projects from ver. 2011.1.519.35  to 2012.3.1205.35 and have the same problem. Values of  Radcomboboxes in dynamically created nested user controls lost after postback in the 2012.3.1205.35 , although there is no such problem in the 2011.1.519.35
So the bug is still exist in the latest version.

Can I also see conversation on TicketID - 605834 ?
Are there any workarounds for the issue?
0
Hristo Valyavicharski
Telerik team
answered on 17 Jan 2013, 11:54 AM
Hi Bennie,

I checked this support ticket #605834 . Customer was disabled the ViewState. That was causing the issue. Can you verify that your ViewState is enabled? 

I followed your steps to created small sample, but couldn't reproduce the issue. I have tested with
2011.1.519.35 and 2012.3.1205.35 on latest Chrome (ver. 24), IE9 and FF18. Please look at my sample and modify it in order to reproduce this behavior. Maybe this happens only on a particular browser version.
Note that .dll files are removed from the sample.

Kind regards,
Hristo Valyavicharski
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
Ruben Markosyan
Top achievements
Rank 1
answered on 17 Jan 2013, 01:11 PM

Hi Hristo ,

This example (RadControlsWebSite1.zip) does not reflecting the problem.

I have modified your sample to reflect the issue. 
1. Repeater should be in the parent page, not in the user control.
2. Repeater should be refreshed on each postback, and a user control should be loaded dynamically for each repeater item. 
3. I’ve also added AutoPostBack="true" to the radcomboboxes instead of the button .

With dlls of the latest version ( 2012.3.1205.35) – the error exists. When you changing selection on any combobox all others losing their selected values. 
With old version (2011.1.519.35) – working correct. When you selection on any combobox, other comboboxes are keeping selected values.


Here is link to the modified example.
https://dl.dropbox.com/u/3882061/RadControlsWebSite1.zip

0
Hristo Valyavicharski
Telerik team
answered on 18 Jan 2013, 03:51 PM
Hi Bennie,

Thank you for the modified sample. I looked into it and here is what I mentioned:
You have two Repeaters. The first one is in Default.aspx and the other one in WebUserControl.ascx. I made the following changes on the sample:

  •   The second Repeater in WebUserControl.ascx is removed.
  •   First's Repeater binding code is moved in Page_Init event. This is necessary because this event is fired before the ViewState is applied. Using the Page_Init event to populate the RadComboBoxes would persist their selection.

I'm attaching the modified sample. Please check it out and let me know if it helps.


Kind regards, Hristo Valyavicharski
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.
Tags
ComboBox
Asked by
Bennie De Jong
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Ruben Markosyan
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or