Weird issue with updating RadWindow's contents

2 posts, 0 answers
  1. Iris
    Iris avatar
    6 posts
    Member since:
    Apr 2014

    Posted 21 May 2014 Link to this post

    I have a asp page containing a linkbutton.  When it is clicked, the server side behind code will retrieve some text from database. Then display it in a div block inside a RadWindow.

    The issue was that when the RadWindow was popped up for the first time by clicking the button, ABC was displayed . When you clicked the button again, the retrieved text was displayed. Could anyone help? Thanks!

    Below is the code:

    The linkButton behind code:

    protected void button1_Click(object sender, EventArgse) {
           String text = retrieve(...);
           string script = string.Format("showResult (\"{0}\");",text);  

    js code:

    var rwNoneEditable = '<%=rwNoneEditable.ClientID%>'
    function showResult (text) {
        alert($("#carInfo").html());//show the text
        var radW = $find('<%=rwNoneEditable.ClientID%>');
        radW .show();

    RadWindow asp:

    <asp:UpdatePanel ID="upNoneEditable" runat="server" UpdateMode="Conditional" RenderMode="Inline">
        <telerik:RadWindow ID="rwNoneEditable" runat="server" Modal="true" Behaviors="Close, Move, Resize"
            VisibleStatusbar="False" Width="700px" Height="600px" VisibleTitlebar="True" Title="Test" >
                <div id="carInfo" style="overflow: scroll; width: 100%; height: 100%;" visible="true">
  2. Marin Bratanov
    Marin Bratanov avatar
    3907 posts

    Posted 23 May 2014 Link to this post

    Hello Iris,

    I am attaching a simple page here that seems to work fine for me. Could you compare it with your real setup and find the difference that causes the issue? Perhaps the AJAX setup causes nested update panels and/or settings, so you would have to remove them. I also advise that you examine this help article on working with AJAX in the ContentTemplate of a RadWindow: Also, make sure there are no script errors caused by improperly terminated strings when the HTML from the code-behind passes through the JavaScript function as an argument.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top