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

Telerik and asp.net update panels

1 Answer 55 Views
AJAX and Web 2.0
This is a migrated thread and some comments may be shown as answers.
Peter Nwan
Top achievements
Rank 1
Peter Nwan asked on 26 Feb 2010, 06:57 PM

Hi i am using a telerik grid as well as an update panel on the same page. In the update panel, there is a javascript popup which i edit some information in, the problem is these changes are not detected, for instance the test i enter into the textbox is not sent back to the database, in fact when i debug it, the textbox shows empty data when there is actually data within it. Here is a portion of my code which loads the grid;

       protected override void NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
       {  
           this.radGrid.DataSource = Sessions.GetByID(intID);  
       }  
 

The problem is i think my grid is getting hit each time, my question is how do i stop it from firing each time, especially considering I have wrapped my popup with an asp.net updatepanel

1 Answer, 1 is accepted

Sort by
0
Nikita Gourme
Top achievements
Rank 1
answered on 01 Mar 2010, 12:44 PM
Peter, as far as I understand (after consulting with this topic) the Telerik grid will fire its NeedDataSource event on each page lifecycle right after the PageLoad event. Why using complicated approach with js popup when you have integrated popup edit form for the grid? It should work with MS UpdatePanel as well as with RadAjax.

Nikita
Tags
AJAX and Web 2.0
Asked by
Peter Nwan
Top achievements
Rank 1
Answers by
Nikita Gourme
Top achievements
Rank 1
Share this question
or