RadWindow VisibleOnPageLoad issue

3 posts, 1 answers
  1. Joshua
    Joshua avatar
    7 posts
    Member since:
    Jan 2012

    Posted 16 Jul 2012 Link to this post

    Hello , everyone, I've got a strange issue that just popped up after I upgraded to v.2012.2.607.40.

    I've got a RadWindow that has VisibleOnPageLoad set to false. This RadWindow contains a few asp drop down lists, RadComboBoxes, and a RadButton. One of the drop down lists contains an item with the text and value set to "Trial". As long as this item is there, the RadWindow will partially render on page load (If I remove the Item, the window is hidden, as expected). If I change the text and value to anything else, the RadWindow is hidden as expected. I have even tried replacing the drop down list with a RadComboBox with an item that has the same "Trial" text/value and I see the same behavior. I've even gone so far as to remove all other controls from the RadWindow to narrow it down to this, so if I have this markup, the RadWindow is shown on page load even if VisibleOnPageLoad is false:

    <telerik:RadWindow ID="radWindowNew" runat="server" Modal="true" Behaviors="Close"
        Skin="Windows7" Width="400" Height="350px">
        <ContentTemplate>
            <table border="0" cellpadding="2" width="100%">
                <tr>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlLeadSource">
                                <asp:ListItem>Trial</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </telerik:RadWindow>

    However, if I change the text of the list item to anything else, the VisibleOnPageLoad setting is evaluated correctly and the RadWindow is hidden.

    Is this a bug, or can someone Identify something I'm doing incorrectly?

    Thanks!


  2. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 19 Jul 2012 Link to this post

    Hi Joshua,

     Indeed, we recently found that bug in RadWindow and we apologize for the caused inconvenience. The bug is already fixed and the fix is available in the latest internal build. Please, use the LIB and let us know how it goes.

    All the best,
    Svetlina Anati
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Tony
    Tony avatar
    10 posts
    Member since:
    Apr 2011

    Posted 25 Jul 2012 Link to this post

    Glad to have found this post.  I spent the better part of today slowly narrowing down the problem to the word "Trial".  All you have to do is have this anywhere in the content template and the problem occurs.  Seems a little lame that the Telerik code is doing some kind of a string match on this word - that type of thing is classically fragile.
Back to Top