Bubble Event not rising when using AJAX panel

2 posts, 0 answers
  1. Esk
    Esk avatar
    11 posts
    Member since:
    Sep 2007

    Posted 19 May 2008 Link to this post

    I have the following issue happening:  My application  consists of a header that is in a usercontrol Default page that has a lable and content area that change based on what usercontrol has been loaded when the header ImageButtons are clicked.

    I raise a bubble event whenever the header image bubbles are clicked and have a boolean on bubble function that handles the loading of user cotrols based on case by the eventargs that are being passed

    in example: Header.ascx.cs
    protected void btnHome_Click(object sender, ImageClickEventArgs e)  
                RaiseBubbleEvent(sender, new CommandEventArgs("Home"""));  

    protected override bool OnBubbleEvent(object source, EventArgs args)  
                CommandEventArgs commandEvent = args as CommandEventArgs;  
                if (commandEvent != null)  
                    switch (commandEvent.CommandName)  
                        case "Home":  

    I use your example how to dynamicly load my user controls and it works fine up untill i tried to ajaxify this application.

    I have tried a countless of combinations between using ajax panels, panels, content holders, ajax manager and have had no luck what so ever getting it to work. I used to work with the pre-prometius version of telerik for my former employer and was able to do this without an issue. has anything changed? My raiseBubbleEvent gets fired up but my  OnBubbleEvent never gets fired when using the prometius ajax. Do i need to make a custom even for header clicked?
    Please help

     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                <telerik:AjaxSetting AjaxControlID="rapHeader">  
                        <telerik:AjaxUpdatedControl ControlID="rapHeader" /> 
                        <telerik:AjaxUpdatedControl ControlID="rapCrumb" /> 
                        <telerik:AjaxUpdatedControl ControlID="rapContent" /> 
        <div id="dFrame">  
            <div id="dHeader" class="header">  
                <telerik:RadAjaxPanel ID="rapHeader" runat="server">  
                    <TRP:ucHeader ID="ucHeader" runat="server" Visible="true" /> 
            <div id="dCrumb" style="height">  
                <telerik:RadAjaxPanel ID="rapCrumb" runat="server">  
                    <asp:Label ID="lblCrumb" runat="server" Font-Bold="True" /> 
            <div id="dContent" class="content">  
                <telerik:RadAjaxPanel ID="rapContent" runat="server" LoadingPanelID="rlpLoading">  
                <telerik:RadAjaxLoadingPanel ID="rlpLoading" runat="server" Height="75px" Width="75px">  
                    <img alt="Loading..." src='Images/loading4.gif' style="border: 0px;" /> 
  2. Esk
    Esk avatar
    11 posts
    Member since:
    Sep 2007

    Posted 20 May 2008 Link to this post

    Nvm !

    I got this issue resolved by adding Ajax Panels inside my header and footer  and in the aspx page i  have now regular panel around the header /footer and Ajax panel arount the content area where controls are being dynamicly loaded. After i wired those up through the AJAX manager i was able to  navigate through  the site using my header navigation just fine with full ajax loads.

    May i make suggestion  to add an example like that in your online resources since it seems to be a common use and can cause some confusion.

    Blagodaria za vnimanieto vi,
    Priaten den mladezhi.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top