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

[Solved] Prevent RadGrid Postback

3 Answers 586 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason Zam
Top achievements
Rank 1
Jason Zam asked on 09 Feb 2010, 06:47 PM
Hello,

I have a web page with several individual buttons and also several RadDocks that contain their own RadGrids, all of which are in an UpdatePanel.  On this page, there is quite a bit of functionality that happens on the Page Load Event. 

Now for the individual buttons themselves, I want the page to Postback like normal to reload the page.  However, I don't want to Postback to occur when the user is working with one of the RadGrids.  Currently, when the user adds, edits or deletes a record in one of the RadGrids, this causes a Postback of the page and negatively affects the performance of the overall web page.

I am using the RadAjaxManager as well:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
     <ajaxsettings>

         <telerik:AjaxSetting AjaxControlID="RadGrid1">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
              </UpdatedControls>
         </telerik:AjaxSetting>

     </ajaxsettings>
</telerik:RadAjaxManager>


Is it possible to have the RadGrid not Postback so that the performance is not negatively affected?  Any siggestions, tips or work-arounds would be greatly appreciated!

Jason

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 10 Feb 2010, 03:40 PM
You can always look at performing Batch Updates upon a button click (or something similar) which would allow your RadGrid to only postback whenever you actually want it to postback.
0
Jason Zam
Top achievements
Rank 1
answered on 12 Feb 2010, 09:49 PM
Thank you for your suggestion but it would require a fairly large code rewrite on my end, something I'm desperately hoping I can avoid.

Are there not any other solutions to prevent a postback in a Radgrid?  For example, when I click the edit button in the Radgrid (there is a full page Postback)... can this tyoe of Postback be avoided?
0
Tsvetoslav
Telerik team
answered on 15 Feb 2010, 01:08 PM
Hi Jason,

I am afraid it is impossible for the RadGrid control to do all the operations you have listed without making a trip to the server.

Best wishes,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Jason Zam
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Jason Zam
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or