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

Rotator breaks wizard

2 Answers 32 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 09 Mar 2009, 01:21 PM
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:

    <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> 
Codebhind does (now) nothing than
    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";  
        } 
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



2 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 10 Mar 2009, 02:33 PM
Hi Manfred Pohler,

The problem that you experience is not directly related to the RadRotator control. As you see in the links bellow this is a common ASP.NET issue and I do not recommend you to enable the smartNavigation functionality in the page where you use our ASP.NET AJAX controls ( or any AJAX controls).


I hope this helps.

All the best,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
ManniAT
Top achievements
Rank 2
answered on 10 Mar 2009, 04:33 PM
Thank you for this information.
I'm the lucky guy - I never ran in any problems with it till now :)

Anyhow - a page transition can also reduce page flickering - and makes no problems.

Regards

Manfred
Tags
Rotator
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Fiko
Telerik team
ManniAT
Top achievements
Rank 2
Share this question
or