Update breaks dynamic comboboxes postback

6 posts, 0 answers
  1. Bennie De Jong
    Bennie De Jong avatar
    3 posts
    Member since:
    Sep 2012

    Posted 14 Sep 2012 Link to this post

    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
  2. Nencho
    Admin
    Nencho avatar
    1864 posts

    Posted 18 Sep 2012 Link to this post

    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.
  3. Ruben Markosyan
    Ruben Markosyan avatar
    7 posts
    Member since:
    Apr 2010

    Posted 15 Jan 2013 Link to this post

    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?
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 17 Jan 2013 Link to this post

    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.
  5. Ruben Markosyan
    Ruben Markosyan avatar
    7 posts
    Member since:
    Apr 2010

    Posted 17 Jan 2013 Link to this post

    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

  6. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 18 Jan 2013 Link to this post

    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.
Back to Top