Control in Repeater doing full postback.

6 posts, 0 answers
  1. Justyn Hunter
    Justyn Hunter avatar
    10 posts
    Member since:
    Jan 2006

    Posted 22 Mar 2013 Link to this post

    I have a repeater with a textbox (TextBox1) and a label in each item. I added a TextChanged event handler to the textbox and set autopostback to true. I want to change the value of the label based on what's typed into the textbox. I also have a textbox outside the repeater (TextBox2) that should also change the value in the label inside the repeater.

    I used a RadAjaxManger control and told it that TextBox2 should update the repeater and it works perfectly.

    The issue is that TextBox1 (the one inside the repeater) always does a full postback when I don't want it to. I tried using the RadAjaxManager and setting the repeater able to update the repeater and I tried programatically adding the specific textbox and label to the RadAjaxManager in the handler for the repeater's ItemDataBound event and I tried wrapping the entire repeater in a RadAjaxPanel all to no avail.

    On another page I have a dropdownlist in a repeater that works perfectly, but this textbox just won't cooperate.

    Any suggestions would be great, thanks!
  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 27 Mar 2013 Link to this post

    Hi Justyn,

    I see from the official support ticket which you have submitted that the problem was resolved. If you like you can post the solution in the forum which can help others overcome this issue.

    All the best,
    Angel Petrov
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Omar
    Omar avatar
    10 posts
    Member since:
    Jun 2012

    Posted 24 Apr 2013 Link to this post

    Am actually facing the same problem here :(

    Could you please share with us the solution so that it would help everyone overcome this issue

    Much appreciated
  5. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 29 Apr 2013 Link to this post

    Hello Omar,

    Please wrap the repeater in an panel and set the panel to update itself. If this does not help and you are using an ASP.NET text box please replace the text box with a RadTextBox.

    Regards,
    Angel Petrov
    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.
  6. Stein
    Stein avatar
    25 posts
    Member since:
    Apr 2008

    Posted 09 Apr 2014 in reply to Angel Petrov Link to this post

    Possible to get a working sample-code for this?
  7. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 14 Apr 2014 Link to this post

    Hello Stein,

    In attachments you can find a working sample which illustrates a possible realization of such a scenario. I hope that the provided example proves helpful.

    Regards,
    Angel Petrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017