RadWindow, RadButton and RadAjaxPanel

3 posts, 0 answers
  1. BitShift
    BitShift avatar
    34 posts
    Member since:
    Aug 2014

    Posted 16 Aug 2014 Link to this post

    I have a page that contains
    - An AJAX panel that contains among other things, a few buttons.  These RadButtons have an OnClientClicked handler defined.
    - RadWindows within a WindowManager.  The windows have ReloadOnShow and DestroyOnClose = true

    When one of the windows is shown, there is a label, which I update the text based on the selected text of a dropdownlist on the main page.
    However, when the window is shown, even through it correctly runs its OnLoad method, and APPEARS to have update the label text correctly, its NOT displayed on the label.


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Aug 2014 in reply to BitShift Link to this post

    Hi BitShift,

    I guess you are placing RadButton and DropDownList inside the RadAjaxPanel and Label is inside the RadWindow. Please do the following modifications in your code snippet. Please provide your code if it doesn't help.

    <telerik:RadDropDownList ID="rdroplistDemo" runat="server" DefaultMessage="select"
        AutoPostBack="true" OnSelectedIndexChanged="rdroplistDemo_SelectedIndexChanged">
            <telerik:DropDownListItem Text="Item1" />
            <telerik:DropDownListItem Text="Item2" />
            <telerik:DropDownListItem Text="Item3" />
            <telerik:DropDownListItem Text="Item4" />
    <telerik:RadButton ID="rbtnOpenWindow" runat="server" Text="Open Window" AutoPostBack="false">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <telerik:AjaxSetting AjaxControlID="rdroplistDemo">
                    <telerik:AjaxUpdatedControl ControlID="lblUpdateText" />
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <telerik:RadWindow ReloadOnShow="true" DestroyOnClose="true" OpenerElementID="rbtnOpenWindow" ID="rwinOpenPage" runat="server">
                    <asp:Label ID="lblUpdateText" runat="server">

    protected void rdroplistDemo_SelectedIndexChanged(object sender, Telerik.Web.UI.DropDownListEventArgs e)
        lblUpdateText.Text = e.Text;

  3. BitShift
    BitShift avatar
    34 posts
    Member since:
    Aug 2014

    Posted 18 Aug 2014 in reply to Shinu Link to this post

    Yes, that is what I was doing.  However, I found a work around - simply put the contents of the window in their own aspx, then use the navigateurl property and feed the needed values to the window on the querystring.  Someone else I was talking to mentioned using the AJAX manager as you suggest.  I will keep that in mind in the next section of my project.

Back to Top