RadWindow Disappears and Quickly Reappears on Postback

2 posts, 0 answers
  1. Chris
    Chris avatar
    1 posts
    Member since:
    May 2014

    Posted 20 May 2014 Link to this post

    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.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 May 2014 in reply to Chris Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top