Hi,
I have a rotator in the top section of my masterpage.
It looked goot - till our customer argued about "script errors" on some pages.
We found out that this happens on pages with asp:wizard -- and there on further steps.
So I open a page with a wizzard - looks good.
I click continue for the next step -- and get the script error.
It takes some time to get the error - looks like the error comes when the rotator scrolls.
I reduced everything so left is a rotator (normaly displaying a user control) only shwoning a string.
The rotator definition looks like this:
Codebhind does (now) nothing than
RebindRotator is called on every page load.
Before it was inside if(!IsPostback) -- but with this I loose my binding on wizard pages.
The same as when the error occures - OK on the first step - no data on following steps.
The "reson" for this has something to do with "SmartNavigaton".
When I remove this from the pages tag in web.config the rotator works like expected.
Is there a workaround to have smartnavigation enabled with RadRotator?
Regards
Manfred
I have a rotator in the top section of my masterpage.
It looked goot - till our customer argued about "script errors" on some pages.
We found out that this happens on pages with asp:wizard -- and there on further steps.
So I open a page with a wizzard - looks good.
I click continue for the next step -- and get the script error.
It takes some time to get the error - looks like the error comes when the rotator scrolls.
I reduced everything so left is a rotator (normaly displaying a user control) only shwoning a string.
The rotator definition looks like this:
<telerik:RadRotator ID="rrRot" runat="server" PauseOnMouseOver="false" OnItemClick="rrRot_ItemClick" Width="650px" Height="120px" FrameDuration="4000" > |
<ItemTemplate> |
<div class="rotItemTemplate"> |
<%# Eval("ObjectID") %> |
</div> |
</ItemTemplate> |
</telerik:RadRotator> |
string[] straS = { "Sau1", "Sau2", "Sau3", "Sau4", "Sau5", "Sau6", "Sau7", "Sau8", "Sau9" }; |
private void RebindRotator() { |
DataTable rotatorData = new DataTable(); |
rotatorData.Columns.Add("ObjectID"); |
foreach (string strX in straS) { |
rotatorData.Rows.Add(strX); |
} |
rrRot.DataSource = rotatorData; |
rrRot.DataBind(); |
//rrRot.OnClientItemShown = "OnItemShown"; |
} |
Before it was inside if(!IsPostback) -- but with this I loose my binding on wizard pages.
The same as when the error occures - OK on the first step - no data on following steps.
The "reson" for this has something to do with "SmartNavigaton".
When I remove this from the pages tag in web.config the rotator works like expected.
Is there a workaround to have smartnavigation enabled with RadRotator?
Regards
Manfred