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

Cancel button flashing

1 Answer 144 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 29 May 2015, 02:42 PM

Hi,

My wizard uses postback on ActiveStepChanged, whenever Next is clicked then the cancel button appears and disappears during the postback. If I ajax the control then this seems to work, is it unusual to do this?:

 

 

<telerik:AjaxSetting AjaxControlID="RadWizard1">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadWizard1" UpdatePanelHeight="100%" LoadingPanelID="ALP1" UpdatePanelCssClass="" />
    </UpdatedControls>
</telerik:AjaxSetting>

 

The problem is that this only works when the wizard has only text, as soon as I have grid's etc. on wizard steps when I get ajax errors. Removing the code above  makes the errors disappear.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 01 Jun 2015, 01:14 PM
Hello,

The flickering that you observe, when the page refreshes after a postback is performed, is expected. It can be avoided by wrapping the controls that trigger postback in RadAjaxPanel control or by updating them with the help of the RadAjaxManager control. This way they will be updated through AJAX requests without causing the whole page to refresh. I suggest you try wrapping the RadWizard in a RadAjaxPanel as shown below:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <telerik:RadWizard ID="RadWizard1" runat="server">
        <WizardSteps>
           <%-- steps--%>
        </WizardSteps>
    </telerik:RadWizard>
</telerik:RadAjaxPanel>

Note that you should not update the same controls with RadAjaxPanel, RadAjaxManager and asp:UpdatePanel at the same time. This could be the reason behind the errors you are getting. For instance, in the example above you can wrap the RadWizard and other controls in a RadAjaxPanel, but it is not recommended to put and UpdatePanel inside the RadAjaxPanel, or to update the Wizard with RadAjaxManager while it is nested in a RadAjaxPanel, otherwise conflicts are likely to occur.

Regards,
Ivan Danchev
Telerik
Tags
Wizard
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Ivan Danchev
Telerik team
Share this question
or