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

RadWindow VisibleOnPageLoad issue

2 Answers 94 Views
Window
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 16 Jul 2012, 04:04 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 19 Jul 2012, 10:26 AM
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.
0
Tony
Top achievements
Rank 1
answered on 25 Jul 2012, 08:31 PM
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.
Tags
Window
Asked by
Joshua
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Tony
Top achievements
Rank 1
Share this question
or