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

RadWindow Disappears and Quickly Reappears on Postback

1 Answer 80 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 20 May 2014, 03:17 PM
I have an ajax enabled tab string multi-page. One of the page contains a button and a radWindow.

The radWubdiw uses the ContentTemplate to show another UserControl. The radWindow is opened using a button click event that sets the RadWindow.VisibleOnPageLoad = true.

The user control has multiple combobox items with AutoPostback = true.  Whenever any of the comobox change the RadWindow will disappear for a split second and reappear immediately.

The pause during the postback when the page is reappearing is very noticeable on IE8. 

We are using Telerik version:2014.1.225.40.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 May 2014, 05:25 AM
Hi Chris,

Please have a look into the sample code snippet  which works fine at my end.

ASPX:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="radbtnOpenWin">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="radwinUserControl" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadButton ID="radbtnOpenWin" runat="server" Text="Open Window" OnClick="radbtnOpenWin_Click">
</telerik:RadButton>
<telerik:RadWindow ID="radwinUserControl" runat="server">
    <ContentTemplate>
        <uc1:MultipleCombo ID="MultipleCombo1" runat="server" />
    </ContentTemplate>
</telerik:RadWindow>

C#:
protected void radbtnOpenWin_Click(object sender, EventArgs e)
{
    radwinUserControl.VisibleOnPageLoad = true;
}

ASCX:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="radcboOne">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="radcboOne" />
            </UpdatedControls>
        </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="radcboTwo">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="radcboTwo" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadComboBox ID="radcboOne" runat="server" AutoPostBack="true">
    <Items>
        <telerik:RadComboBoxItem Text="Item1" />
        <telerik:RadComboBoxItem Text="Item2" />
        <telerik:RadComboBoxItem Text="Item3" />
    </Items>
</telerik:RadComboBox>
<telerik:RadComboBox ID="radcboTwo" runat="server" AutoPostBack="true">
    <Items>
        <telerik:RadComboBoxItem Text="Item1" />
        <telerik:RadComboBoxItem Text="Item2" />
        <telerik:RadComboBoxItem Text="Item3" />
    </Items>
</telerik:RadComboBox>

Thanks,
Princy.
Tags
Ajax
Asked by
Chris
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or