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

Ajax update specific rows in a repeater

3 Answers 203 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 30 Oct 2014, 04:59 PM
Hi all,

I currently have a list of objects in session memory.  I am wondering if there is an efficient way of rendering the changes of a specific object to a repeater without having to call DataBind() on the whole list.

John

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 04 Nov 2014, 08:03 AM
Hi John,

Since the Repeater is a data bound control, the only way to refresh its data is by changing the data source and calling the DataBind method.

However, you could also try to find the controls that will display the data for each item and manually change their values, but this is a neat workaround and you will only change the displayed data and not the underlying data source of the Repeater, so I am not sure that this is an appropriate solution.


Regards,
Konstantin Dikov
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.

 
0
John
Top achievements
Rank 1
answered on 04 Nov 2014, 09:32 PM
Thanks for the reply.  The reason for my question is a performance issue.  I am finding that when the list is small, it's all fine.  However, when the list grows (list is nested with objects, totals to ~300 objects), the performance degrades.  Even a simple click of a button that doesn't affect the list, but is in the same RadAjaxPanel is taking a long response time.

Any suggestions on improving performance when it comes to lists of objects inside a RadAjaxPanel?
0
Konstantin Dikov
Telerik team
answered on 06 Nov 2014, 04:41 PM
Hi John,

I completely understand your idea, but this is a limitation of the data-bound controls and there is nothing that could be done, except the manual update which I have suggested in my previous post (which once again is not a recommended one).

As for your question regarding the RadAjaxPanel. When a postback is initiated from a control placed within a RadAjaxPanel, the entire content and all child controls will be updated. If you have more complex requirement and you want to update particular controls when some control initiates a postback, you could use RadAjaxManager, which could be used for such relationships (Initiator control -> Controls to update).

Detailed information and online demo for RadAjaxManager could be found in the following links:
Hope this helps.
 

Regards,
Konstantin Dikov
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
John
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
John
Top achievements
Rank 1
Share this question
or