RadWindow OnClientClose event causing postback of parent

2 posts, 0 answers
  1. Trevor
    Trevor avatar
    1 posts
    Member since:
    Jun 2012

    Posted 23 Apr 2014 Link to this post

    Prior to adding the OnClientClose event handler, closing the RadWindow did not cause a postback.  I added the following function to the RadWindow as the OnClientClose event handler, and now the parent window refreshes with a postback anytime the RadWindow is closed.  The event handler's purpose is to hide a the DropDownList of a RadComboBox within the RadWindow that isn't hidden properly if it's displayed and the user closes the RadWindow (The RadWindow closes, but the RadComboBox's DropDownList remains displayed until you click elsewhere on the page).  How can I prevent the postback?

    There are no other Unload or Closing related events on the RadWindow.  Like I said, without the event handler for ClientClose, closing the RadWindow does not cause a postback of the parent window.  I didn't think hideDropDown() would cause a postback (at least, looking at its definition, it doesn't look like it should).

    ​function rwPOAOptionsDialog_ClientClose(sender, args) {
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Apr 2014 in reply to Trevor Link to this post

    Hi Trevor,

    Please have a look into the sample code snippet which works fine at my end.

    <telerik:RadWindow ID="radwinRefreshPage" runat="server" VisibleOnPageLoad="true"
            <telerik:RadComboBox ID="radcboHideDropdown" runat="server">
                    <telerik:RadComboBoxItem Text="Item1" />
                    <telerik:RadComboBoxItem Text="Item2" />

    <script type="text/javascript">
        function HideDropDown(sender, eventargs) {
            var combo = $find("<%=radcboHideDropdown.ClientID %>");

Back to Top