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

Hide and Show RadWindow

3 Answers 337 Views
Window
This is a migrated thread and some comments may be shown as answers.
neebs
Top achievements
Rank 2
neebs asked on 12 Dec 2009, 02:28 AM
Hello,

I like the example called "Use controls container" shown here:

http://demos.telerik.com/aspnet-ajax/window/examples/internalcontent/defaultcs.aspx

for an application I am working on. I am displaying a list of investments on a grid, and by selecting a grid row, I would like to display the investment historical returns in a Rad Window. I would also like to allow them to move from one investment to another and have the historical returns update in the rad window. I have all of this working fine, however I would like to initially have the window hidden. So if they aren't interested in historical returns they don't have to view them. I would like to show the window only if they select a row for display. I'm having trouble doing this. Can you point me in the right direction? Basically, I would like the example for User Controls Container to work exactly as is, however initially the window is not visible.

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 14 Dec 2009, 02:41 PM
Hi neebs,

 Straight to your questions:


1) To show the RadWindow on a particular event and not to have it opened on page load, you should remove VisibleOnPageLoad="true" setting from the markup of the demo and to reference it by using the client $find method and then call its method show().

2) To programmatically close the RadWindow on a particular event you should again reference it by using the client $find method and then call its method close().


All the best,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
neebs
Top achievements
Rank 2
answered on 15 Dec 2009, 08:07 PM
I'm still having issues with this. In my RadWindow is a ContentTemplate and in that is a RadGrid. I have the parent window RadGrid set to enable updates to the RadWindow RadGrid, but it has no effect on the RadGrid being updated. In other words, i click on the parent window RadGrid and the RadWindow RadGrid does not update. However if I change my RadAjaxManager to have the parent window RadGrid update the RadWindow, the grid populates and updates. The problem with this is that the RadWindow closes and re-opens. I'm trying to preserve the position and size of the RadWindow, but each time it updates, it resets itself to it's default configuration.
0
Svetlina Anati
Telerik team
answered on 18 Dec 2009, 11:54 AM
Hi neebs,

Would you please make sure that you are using a separate RadWindow and it is not in a RadWindowManager? If this si so , everything should work OK as shown in our online demo.

In case the problem persists, please prepare and send me a sample, fully runnable reproduction demo (use a fake programmatic datasource for the grids) along with detailed explanations of the actual and the desired result and I will do my best to help.

Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
neebs
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
neebs
Top achievements
Rank 2
Share this question
or