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

resize radwindow

1 Answer 104 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 17 Oct 2011, 08:14 PM
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?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Oct 2011, 06:17 AM
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.
Tags
Window
Asked by
Mark
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or