RibbonBar multiple postback

9 posts, 0 answers
  1. Gordon
    Gordon avatar
    3 posts
    Member since:
    May 2011

    Posted 13 Jul 2011 Link to this post

    We upgraded to the newest release version of the RadControls today.  When we did that, we noticed that our pages started to hit the Page_Load function multiple times for each request.  We created a small Telerik Web Application and found that the RibbonBarGroup in the RibbonBar control is causing the issue.

    We used Visual Studio 2010 and created a Telerik Web Application project in VB.  We have a master page, an aspx page and a vb code behind for each.

    RibbonBar.Master
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadRibbonBar ID="RadRibbonBar1" runat="server">
        <telerik:RibbonBarTab Text="Tab 1">
            <telerik:RibbonBarGroup Text="Group 1">
                <Items>
                    <telerik:RibbonBarButton ID="rbb1" runat="server" Text="Button 1" />
                </Items>
            </telerik:RibbonBarGroup>
        </telerik:RibbonBarTab>
    </telerik:RadRibbonBar>
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
      
    </asp:ContentPlaceHolder>

    RibbonBar.Master.vb
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Me.Page.IsPostBack Then
            Response.Write(DateTime.Now & "-RibbonBar.Master Not IsPostBack<br />")
        Else
            Response.Write(DateTime.Now & "-RibbonBar.Master IsPostBack<br />")
        End If
    End Sub

    RibbonBar.aspx (Using the RibbonBar.Master)
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
      
        <telerik:RadButton ID="btnRibbonBar" runat="server" Text="RadButton">
        </telerik:RadButton>
          
    </asp:Content>

    RibbonBar.aspx.vb
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Me.Page.IsPostBack Then
            Response.Write(DateTime.Now & "-RibbonBar.aspx Not IsPostBack<br />")
        Else
            Response.Write(DateTime.Now & "-RibbonBar.aspx IsPostBack<br />")
        End If
    End Sub
    Private Sub btnRibbonBar_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRibbonBar.Click
        Response.Write(DateTime.Now & "-btnRibbonBar_Click<br />")
    End Sub

    If you put a break point on each of the subs, you will see that when you click the button, the Page_Load events in the aspx and master page are hit, then the click event for the button, then the Page_Load events in the aspx and master page are hit again.

    Thanks for your time,
    Gordon


  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 14 Jul 2011 Link to this post

    Hi Gordon,

    We recently fixed similar problems, caused by some img dom elements without a src, which caused additional requests to the currently loaded page. Could you, please, share in which browser does that reproduce?
    Thanks.


    Regards,
    Nikolay Tsenkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gordon
    Gordon avatar
    3 posts
    Member since:
    May 2011

    Posted 14 Jul 2011 Link to this post

    This happened when we went to debug using IE9.  We added break points in both of the Page_Load events and the button click event.  The project was created in Visual Studio 2010 and targeted the .Net 4.0 framework.

    Thanks,
    Gordon
  5. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 18 Jul 2011 Link to this post

    Hi Gordon,

    Please, try using the next Latest Internal Build. We have made an attempt to fix the problem and our tests are passing on all known problematic scenarios (including the one you reported).

    Please, accept our apology for any inconvenience caused.


    Regards,
    Nikolay Tsenkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  6. Ian
    Ian avatar
    129 posts
    Member since:
    Jun 2009

    Posted 25 Jul 2011 Link to this post

    Hi, I've just spent a few hours debugging an application only to find that I've got the same problem with the RadRibbon bar causing duplicate postbacks. I checked the release notes for the Telerik.Web.UI_2011_2_721_Dev internal build and it doesn't mention any fixes relating to the ribbon bar control. Can you confirm that this internal build should resolve the postback problem?

    Thanks, Ian

  7. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 28 Jul 2011 Link to this post

    Hi Ian Price,

    Please excuse us for the inconvenience this issue is causing to you.

    We worked on this issue and fixed a lot of different cases. It is possible that we missed some (because there are actually lots of them inside the control), so we will continue fixing those as we find them on the way.

    Could you also clarify if the latest problem exists in the same setup or in a different one?

    Greetings,
    Simon
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  8. Ian
    Ian avatar
    129 posts
    Member since:
    Jun 2009

    Posted 29 Jul 2011 Link to this post

    Simon,
    Hi. Sorry, I may have confused you with my previous post. I was actually enquiring as to whether the 721 internal build was supposed to fix the multiple postback problem before I tried it. I've since installed the current Telerik.Web.UI_2011_2_726_Dev hotfix and the multiple postback problem appears to have been resolved.

    Thanks, Ian
  9. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 12 Aug 2011 Link to this post

    I use this version Telerik.Web.UI_2011_2_712_Trial_hotfix
    I have this issue with RadRibbonBAR :-(

    I found Telerik.Web.UI_2011_2_713_Dev hotfix Not Telerik.Web.UI_2011_2_726_Dev hotfix where is this version?
  10. Ian
    Ian avatar
    129 posts
    Member since:
    Jun 2009

    Posted 13 Aug 2011 Link to this post

    Hi, The current internal build version is 821 (Your account page, Internal build downloads) - this should include the fix for the multiple postback problem.
    Regards, Ian
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017