This is a migrated thread and some comments may be shown as answers.

Opening RadWindow From RadGrid Bind Problem

1 Answer 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kyle Butler
Top achievements
Rank 2
Kyle Butler asked on 26 Aug 2010, 04:52 PM
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!

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 27 Aug 2010, 11:33 AM
Hello,


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.


-Shinu.
Tags
Grid
Asked by
Kyle Butler
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or