Opening RadWindow From RadGrid Bind Problem

2 posts, 1 answers
  1. Kyle Butler
    Kyle Butler avatar
    26 posts
    Member since:
    Jun 2008

    Posted 26 Aug 2010 Link to this post

    Hi, I have a RadGrid on a webpage that has a few template columns where the user can click on a HTML LinkButton and open up a RadWindow which shows some more data. Everything is working and the Grid is ajaxed using a panel and manager. My problem is that the grid is databound programatically on button click and when one of the LinkButtons are pressed to open the RadWindow, the page renders the window which takes a split second to load, but then the grid does an entire databind which takes up to 5 seconds. I am using a loading panel also, so it is an inconvenience seeing the loading panel popup each time a radwindow is opened from the grid and the grid does a whole bind. The stored procedure is a heavy duty one that takes a few seconds to gather all the data. I would like to remove the bind somehow when an item is clicked on in the RadGrid.

    Thanks in advanced!
  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Aug 2010 Link to this post


    Attach client side onclick event to LinkButton and open the window using any of the methods described in documentation. Now cancel the postback for LinkButton by retuning false (using the code "return false"), which in turn avoids the page reload.

  3. DevCraft R3 2016 release webinar banner
Back to Top