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

Catch postback with AJAX in RadAjaxManagerProxy

3 Answers 49 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Rob Himself
Top achievements
Rank 1
Rob Himself asked on 06 Jul 2010, 10:40 PM
I find myself in a bit of a pickle at the moment. I'm basically trying to blanket a tabstrip's autopostback switching using the RadAjaxManagerProxy. For some reason, I get some very strange results.

For starters, the tab doesn't actually switch. It just gives me a blank RadPageView and an error of "Could not find UpdatePanel with ID ...".

Below is the RadAjaxManagerProxy:

<telerik:RadAjaxManagerProxy ID="uxProdRam" runat="server" EnableViewState="true"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="TabStrip"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="MultiPage" LoadingPanelID="ralp" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 

Any help would be greatly appreciated!

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 07 Jul 2010, 11:34 AM
Hi Rob Himself,

The provided information is not enough for us to reproduce the issue. Could you please paste your code here?

Best wishes,
Yana
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
0
Rob Himself
Top achievements
Rank 1
answered on 07 Jul 2010, 11:45 AM
Sure.

<telerik:RadAjaxManagerProxy ID="uxProdRam" runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="uxMyProductionRts"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="uxMyProductionRts" /> 
                <telerik:AjaxUpdatedControl ControlID="uxMyProductionRmp" LoadingPanelID="ralp" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="uxMyProductionRmp"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="uxMyProductionRmp" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy>

<telerik:RadAjaxLoadingPanel ID="ralp" runat="server" Transparency="10" >     <img src="../Assets/img/common/indicator.gif" alt="Loading..." /> </telerik:RadAjaxLoadingPanel>
 
<telerik:RadTabStrip ID="uxMyProductionRts" runat="server" MultiPageID="uxMyProductionRmp" AutoPostBack="true" 
    SelectedIndex="0" EnableEmbeddedSkins="False" EnableAjaxSkinRendering="true" Skin="ImlRadSkin" UnSelectChildren="true"
    <Tabs> 
        <telerik:RadTab runat="server" Text="Total" PageViewID="uxTotalRpv" /> 
        <telerik:RadTab runat="server" Text="Mine" PageViewID="uxMineRpv" /> 
        <telerik:RadTab runat="server" Text="Downline" PageViewID="uxDownlineRpv" /> 
    </Tabs> 
</telerik:RadTabStrip> 
 
<telerik:RadMultiPage ID="uxMyProductionRmp" Runat="server" SelectedIndex="0" RenderSelectedPageOnly="true"
 
    <telerik:RadPageView ID="uxTotalRpv" runat="server" Width="100%"><!-- grid here --></telerik:RadPageView> 
 
<telerik:RadPageView ID="uxMineRpv" runat="server" Width="100%"><!-- grid here --></telerik:RadPageView> 
 
<telerik:RadPageView ID="uxDownlineRpv" runat="server" Width="100%"><!-- grid here --></telerik:RadPageView> 
 
</telerik:RadMultiPage> 
 
 

Based on my code above, I would expect only the first tab to load initially, but when I click the Total or Downline tabs, those tabs should load while throwing up a RadAjaxLoadingPanel.

Surely I'm doing something wrong?
0
Yana
Telerik team
answered on 13 Jul 2010, 02:28 PM
Hi Rob Himself,

I've tested the provided code and it worked without a problem. Please check whether you've put RadAjaxManager on the page. What exactly is your scenario - MasterPage/Content Page or this code is located inside a user control? Please send us more information.

Kind regards,
Yana
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
TabStrip
Asked by
Rob Himself
Top achievements
Rank 1
Answers by
Yana
Telerik team
Rob Himself
Top achievements
Rank 1
Share this question
or