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
RibbonBar.Master.vb
RibbonBar.aspx (Using the RibbonBar.Master)
RibbonBar.aspx.vb
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
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