Telerik and update panels

2 posts, 0 answers
  1. Peter Nwan
    Peter Nwan avatar
    1 posts
    Member since:
    Feb 2010

    Posted 26 Feb 2010 Link to this post

    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 updatepanel

  2. Nikita Gourme
    Nikita Gourme avatar
    318 posts
    Member since:
    May 2006

    Posted 01 Mar 2010 Link to this post

    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.

Back to Top