fire needdatasource in update panel

2 posts, 0 answers
  1. Łukasz Kuryło
    Łukasz Kuryło avatar
    24 posts
    Member since:
    Jan 2010

    Posted 21 Jun 2010 Link to this post

    Hi all.
    In radgrid, after some operation on client side I want to refresh the grid, so I use __doPostBack(gridid). Update panel is refreshing, but only Page_Load is fired, not needdatasource event. How can I refresh the update panel and refresh the data in grid?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Jun 2010 Link to this post


    If you are using AjaxPanel, then you can invoke an ajaxRequest() from client side and call the Rebind() method from code behind in AjaxRequest server event.

    client code:
    function InitiateAjaxRequest(arguments) 
      // your code 
      var ajaxPanel = $find("<%= RadAjaxPanel1.ClientID %>"); 

    code behind:
        protected void RadAjaxPanel1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e) 
           // rebind the grid here 

Back to Top