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

Updating RadAjaxPanel from jQuery

1 Answer 102 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ned
Top achievements
Rank 1
Ned asked on 06 Jan 2015, 02:48 PM
I have a RadGrid control inside a RadAjaxPanel. In my jquery code, I make an ajax request to add a new record to RadGrid. It's added sucessfuly. However, it doesn't show up on the page even though I update RadAjaxPanel through the code below.

var panel = <%= ajaxPanel.ClientID %>; 
panel.ajaxRequest('<%= ajaxPanel.UniqueID %>','');

I see that RadAjaxPanel is updated but new record isn't there.I have to refresh the whole page to have the new record show up. Is there any way to do it without refresh?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 07 Jan 2015, 07:19 AM
Hi Nedim,

You can try handling the RadAjaxPanel OnAjaxRequest server event and call RadGrid1.Rebind() method to update the grid control.



Regards,
Maria Ilieva
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
Ned
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or