resize radwindow

2 posts, 0 answers
  1. Mark
    Mark  avatar
    14 posts
    Member since:
    Aug 2007

    Posted 17 Oct 2011 Link to this post

    I have a RadGrid and RadWindow. When I double clicked on RadGrid on clientside, I want to RadWindow to open and resize to (600,450) . challenge is here, I have RadWindow visible to set false, so hard time to get the Radwindow it says  undefined) from RadGrid's double click row event from javascript function. Anyone can help to on this please?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 18 Oct 2011 Link to this post

    Hello Mark,

    This issue occurs because you set the visible property as false.When a control visible property is set as false it wont be rendered in the page. So one suggestion is to set the visibility from CSS.

    CSS:
    <style type="text/css">
      .hide
     {
        visibility:hidden !important;
     }
    </style>

    JS:
    <script type="text/javascript">
    function OnRowDblClick()
    {
     var win = $find('<%=RadWindow1.ClientID %>');
     var win1 = window.radopen(null, "win");
     win1.SetSize(600, 450);
    }
    </script>

    Thanks,
    Princy.
Back to Top