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

cannot ajaxify radgrid

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 07 Sep 2013, 08:18 PM
Hello

I am using an old version of radgrid (q3 2008) but i hope you can still help me. I have a radgrid on a content page which i am trying to ajaxify. The basic page elements are a search form with a submit button and an asp panel which contains a radgrid. The panel and grid are initially hidden (visible=false) on page load. When the submit button is clicked the grid is loaded with content and the panel is set visible = true. I put the panel and grid inside a rad ajax panel like so...

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="NotSet">
 
<asp:Panel ID="pnlGrid" runat="server" Visible="true">
 
 
<telerik:RadGrid ID="gridJourneys" runat="server"  Width="960px" AutoGenerateColumns="False" GridLines="None" skin="SureTrack" ShowFooter="True" Visible="False" EnableEmbeddedSkins="False">
 
..rest of grid
 
</telerik:RadGrid></asp:Panel>
</telerik:RadAjaxPanel>


There is a radajaxmanager on the page like so

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnSubmit">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>


When the submit button is clicked the whole page reloads rather than just the grid. Is there somethign wrong with my set up? I can ajaxify the grid inside an asp.net updatepanel but i need to export the grid so I believe i need to use the rad ajax panel

thanks a lot

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 09 Sep 2013, 04:14 AM
Hi,

Please note that using RadAjaxManager simultaneously with RadAjaxPanel or UpdatePanel ( or implementing multiple wrapped RadAjaxPanels ) is not a supported scenario and we highly recommend to avoid such implementation. Please either use just the manager to update your controls replacing the RadAjaxPanel with a regular asp:Panel, or use the RadAjaxPanel alone to wrap your page.

Furthermore, if you are using a complex scenario like WebUserControls or Master/ContentPages, we recommend you to place RadAjaxManager instance on the main/master page and add a proxy control to the user control/content page as described in the following help topic:
RadAjax and MasterPage

Thanks,
Princy.
Tags
Grid
Asked by
andieje
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or