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

ShowContentDuringLoad and RadWindow

1 Answer 244 Views
Window
This is a migrated thread and some comments may be shown as answers.
Moon
Top achievements
Rank 2
Moon asked on 22 Aug 2008, 03:14 PM
When I use a RadGrid within a Radwindow, it puts the grid in one tiny little scrollable row instead of filling up the grid.

I was told to use:

ShowContentDuringLoad

="true"

That does expand the grid as expected, however, when I load that window again, it retains the values that were in the window the last time I used it. So the user can see the old values, then it pauses, clears the window and reloads the window with the new values.

I need to have it open without displaying the old values first.

I tried this:

DestroyOnClose="True"

But then when I open the window again, it has reverted my grid back to one scrollable row, so I'm thinking that it has now lost my initial radwindow where I had setup: ShowContentDuringLoad="true"


Here is what I'm using:

<

radw:RadWindow ID="RadPopupGridWindow" Modal="true" ShowContentDuringLoad="true" ReloadOnShow="true" runat="server" DestroyOnClose="True" />

So in short, how can I open a window that uses a grid, keep the grid intact without that nasty little one row scroll, and open it blank without displaying the previous window content?

thanks.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Aug 2008, 12:27 PM
Hello Moon,

It seems that you are using RadWindow for ASP.NET, not for ASP.NET AJAX. If this is so, the easiest way to achieve the desired behavior is to set the DestroyOnClose and ShowContentDuringLoad properties to the RadWindowManager along with the other settings that you wish to set to the opened RadWindow.

In general the reason for the behavior that you are experiencing is that when you set DestroyOnClose to true, RadWindow's object will be destroyed once the window is closed. From this point on you will not be able to open that exact same window again until the page is reloaded. That is why you need to set the properties to the RadWindowManager - this way you will open every time a new RadWindow with the desired properties set.



Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Moon
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or