Closing Radwindow and refreshing a usercontrol

4 posts, 1 answers
  1. Pooja
    Pooja avatar
    8 posts
    Member since:
    Sep 2011

    Posted 12 Oct 2011 Link to this post

    Hi,

    I have read various posts related to this topic but not found the exact solution to what I am looking for.

    I have a parent page which has a User Control on it. The usercontrol has a Radgrid which has a linkbutton on it. The linkbutton is used to open a Radwindow where I edit the details of the record. When I click on a button on the Radwindow, I want the Radwindow to close and refresh the grid.

    Note that the Grid is in a user control and not a page.

    If i use

    GetRadWindow().BrowserWindow.refreshGrid(args);

    it returns a error saying "BrowserWindow is null or not an object".

    Please help
  2. Answer
    Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 12 Oct 2011 Link to this post

    Pooja,

    Forgive me if I've misunderstood, but what I think you're saying is that the Grid is in a UserControl on the parent page and that when a RadWindow closes, you want to force an refresh of the Grid.

    If I've got that right, then this is what I'd do in your case.

    First, I'd wire-up the RadWindow's OnClientClose event.

    Then, in the function called by that that event, I'd call an AjaxRequest that, in the code-behind forced an update of my grid.

    There are, prolly, a number of ways you can achieve your ends, but this is how I'd do it.

    Hope this helps.

    -- 
    Stuart
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pooja
    Pooja avatar
    8 posts
    Member since:
    Sep 2011

    Posted 13 Oct 2011 Link to this post

    Hi Stuart,

    Thanks a lot for your reply. I guess sometimes we tend to overlook how simple it can be.... Thank u so much!!
  5. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 13 Oct 2011 Link to this post

    No Worries.

    Don't forget to mark my reply as the Answer.

    -- 
    Stuart
Back to Top