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

AJAX not starting until editmode is hit

2 Answers 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 25 Nov 2008, 10:35 PM
I have a 3-level hierarchical grid with the inner-most table being updatable.  I have a combo-box that provides a filter to the grid.  So, the scenario is that I choose a filter and the grid re-binds.  I can then drill-down into the grid to the 3rd level and insert or update a record.

For some reason, I get full page postbacks when the grid refreshes after the combo-box filter is updated and when I click the plus signs to expand and drill down into the grid.  Once I reach a detail item and go into edit mode either through and update or insert, the page then seems to begin leveraging ajax instead of postbacks.

How can I force this behavior to work from the beginning?

I am developing a User Control that hosts the RadGrid in MOSS.

Masterpage includes:
<asp:ScriptManager runat="server" ID="ScriptManager1" />
 <WebPartPages:SPWebPartManager id="m" runat="Server"/>
 <telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1"/>

UserControl includes:

<

telerik:RadAjaxManagerProxy ID="RadAjaxProxyManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadComboBoxBudgetCenter">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ButtonRefreshGrid"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="BOSummaryGrid"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="ButtonRefreshGrid">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ButtonRefreshGrid"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="BOSummaryGrid"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="ButtonHideShowActuals">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="BOSummaryGrid" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="BOSummaryGrid">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ButtonRefreshGrid"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

<telerik:AjaxUpdatedControl ControlID="BOSummaryGrid"

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManagerProxy>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="25">

 

 

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" />

 

 

</telerik:RadAjaxLoadingPanel>

 


Any ideas are appreciated.

2 Answers, 1 is accepted

Sort by
0
Tim
Top achievements
Rank 1
answered on 04 Dec 2008, 05:43 PM
Interestingly, this works as expected in Firefox but the original problem with postbacks still exists in Internet Explorer.

any ideas?

Thanks for your help!
0
Tim
Top achievements
Rank 1
answered on 04 Dec 2008, 06:44 PM
Adding this script in the masterpage seems to have resolved the problem

<form runat="server" onsubmit="return _spFormOnSubmitWrapper();">
   <script type='text/javascript'>_spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true;</script>
<asp:ScriptManager runat="server" ID="ScriptManager1" />
 <telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1"/>


This solution was referenced at the following link which deals with integrating SharePoint and AJAX:
http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Tim
Top achievements
Rank 1
Share this question
or