lost value

2 posts, 0 answers
  1. Michele
    Michele avatar
    31 posts
    Member since:
    Jun 2011

    Posted 02 Apr 2013 Link to this post

    Hello, I have a problem with some of the controls included in tootltip.
    I na page that dynamically loads a usercontrol inside with radRotator in turn this rotator load another usercontrol into a du tootlip.
    the usercontrol inside the tootlip has two radtextbox and add a rating ranging update a SQL table.
    When I click the button, the value of rating is maintained correctly and what I wrote in the textbox is lost. This is because when I click on the button to update the first thing that happens is to reload the usercontrolo that loads the radRotator which in turn charging the usercontrol with the tootlip. but why keep the value of the Rating and not that of texbox?

  2. Marin Bratanov
    Marin Bratanov avatar
    5363 posts

    Posted 04 Apr 2013 Link to this post

    Hello Michele,

    It seems that the rating's value is loaded and saved every time in the database and this is why it is persisted, while the textbox values depend on the post data from the page and the ViewState so that the control tree is properly loaded. The first step for dynamically created controls is to make sure they have IDs and they are the same every time they are created, so the posted data can be put back into them. I do not believe this issue stems from the rotator or tooltip controls, but from the dynamic nature of the controls. Once it works with the dynamic loading without our controls it should work with them as well.

    Marin Bratanov
    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