Label not updating on RadGrid refresh

3 posts, 0 answers
  1. Lukas
    Lukas avatar
    5 posts
    Member since:
    Jun 2015

    Posted 30 Jun 2015 Link to this post

    Hello,

    I currently have a page with a RadGrid and a label which tells the last time that the RadGrid was refreshed. The RadGrid has a refresh command item, and the problem is that pressing the refresh button refreshes the RadGrid but does not update the label. In the RadGrid's PreRender event I have included the following code:

     

    RefreshLabel.Text = "Last Refreshed: " + System.DateTime.Now.ToString();

     

     

    The text of the label changes when I manually refresh the page, but not when I press the RadGrid's refresh button. Is there some quirk to RadGrid's which would prevent the text of the label from changing? Or is there some other event that I should put this code in? I have tried putting the same code in the RadGrid's NeedDataSource event as well, to no avail. 

     

    Thank you for any help that can be provided.

     

  2. Lukas
    Lukas avatar
    5 posts
    Member since:
    Jun 2015

    Posted 30 Jun 2015 in reply to Lukas Link to this post

    As a follow-up, the RadGrid is hooked up to an AJAX Manager. Upon disabling AJAX the label text updates along with the RadGrid as desired. Is there something I must do with the label to have it update with the RadGrid when AJAX is enabled?
  3. Lukas
    Lukas avatar
    5 posts
    Member since:
    Jun 2015

    Posted 30 Jun 2015 in reply to Lukas Link to this post

    After recognizing that the problem was due to AJAX I was able to solve this issue. 
Back to Top