Hi
I have put a radajaxpanel in the window content that opens when
a check box is checked to display more items in a form.
This adds height to the page and creates the need for scroll bars
(which appear) but I would prefer to automatically extend the height
of the window to accomodate the additional form items.
How can I do this from the code behind in the same sub that makes the
panel visible? (VB)
I am sure it is easy .. but I just can't figure it out.
I have tried this - but it does nothing - maybe because the window is not updated
at that point?
thanks
Clive
I have put a radajaxpanel in the window content that opens when
a check box is checked to display more items in a form.
This adds height to the page and creates the need for scroll bars
(which appear) but I would prefer to automatically extend the height
of the window to accomodate the additional form items.
How can I do this from the code behind in the same sub that makes the
panel visible? (VB)
I am sure it is easy .. but I just can't figure it out.
I have tried this - but it does nothing - maybe because the window is not updated
at that point?
| Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged |
| If CheckBox1.Checked Then |
| RadAjaxPanel1.Visible = True |
| Dim RadWindow1 As New RadWindow |
| RadWindow1.Height = Unit.Pixel(450) |
| Else |
| RadAjaxPanel1.Visible = False |
| End If |
| End Sub |
Clive