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

Control in Repeater doing full postback.

5 Answers 277 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Justyn Hunter
Top achievements
Rank 1
Justyn Hunter asked on 22 Mar 2013, 08:10 PM
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!

5 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 27 Mar 2013, 07:00 PM
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.
0
Omar
Top achievements
Rank 2
answered on 24 Apr 2013, 08:41 AM
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
0
Angel Petrov
Telerik team
answered on 29 Apr 2013, 02:03 PM
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.
0
Stein
Top achievements
Rank 1
answered on 09 Apr 2014, 01:27 PM
Possible to get a working sample-code for this?
0
Angel Petrov
Telerik team
answered on 14 Apr 2014, 10:43 AM
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.

 
Tags
Ajax
Asked by
Justyn Hunter
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Omar
Top achievements
Rank 2
Stein
Top achievements
Rank 1
Share this question
or