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

RibbonBar multiple postback

8 Answers 148 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Gordon
Top achievements
Rank 1
Gordon asked on 13 Jul 2011, 10:26 PM
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


8 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 14 Jul 2011, 08:42 AM
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!

0
Gordon
Top achievements
Rank 1
answered on 14 Jul 2011, 01:38 PM
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
0
Nikolay Tsenkov
Telerik team
answered on 18 Jul 2011, 03:58 PM
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!

0
Ian
Top achievements
Rank 1
answered on 25 Jul 2011, 11:36 AM
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

0
Simon
Telerik team
answered on 28 Jul 2011, 02:19 PM
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.

0
Ian
Top achievements
Rank 1
answered on 29 Jul 2011, 09:07 AM
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
0
July
Top achievements
Rank 2
answered on 12 Aug 2011, 08:33 PM
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?
0
Ian
Top achievements
Rank 1
answered on 13 Aug 2011, 09:05 AM
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
Tags
RibbonBar
Asked by
Gordon
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Gordon
Top achievements
Rank 1
Ian
Top achievements
Rank 1
Simon
Telerik team
July
Top achievements
Rank 2
Share this question
or