Catch postback with AJAX in RadAjaxManagerProxy

4 posts, 0 answers
  1. Rob Himself
    Rob Himself avatar
    8 posts
    Member since:
    Jun 2010

    Posted 06 Jul 2010 Link to this post

    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!
  2. Yana
    Admin
    Yana avatar
    5044 posts

    Posted 07 Jul 2010 Link to this post

    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
  3. Rob Himself
    Rob Himself avatar
    8 posts
    Member since:
    Jun 2010

    Posted 07 Jul 2010 Link to this post

    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?
  4. Yana
    Admin
    Yana avatar
    5044 posts

    Posted 13 Jul 2010 Link to this post

    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
Back to Top