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

Trying to use a RadWindow, with content from a Master Page

5 Answers 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 28 Apr 2011, 07:55 PM
I am trying to present a RadWindow after clicking on a Label within my main application page.

If I place no content in the window I have at least been able to get it to appear,
but as soon as I place any content in the ContentTemplate, or maybe even just the act
of putting in an empty ContentTemplate block the Window no longer appears.

I have created a non Master page and succesfully displayed a RadWindow 
containing a Grid which I hooked up to a dummy datasource.

The bad news there is that as soon as I react with the pagination to go to page 2
the 'modal' Window disappears, again not the behavior I am looking for TIA 

5 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 02 May 2011, 02:37 PM
Hello Tim,

We have not been contacted with such a problem as the one with ContentTemplate you describe before and I cannot tell what might be causing the issue - if the issue continues, please prepare a sample demo which is fully runnable, open a new support ticket and send it to us along with detailed reproduction steps and explanations.


As to the second problem you report, I assume that you perform a postback with the pagination - if so, please, note, that the RadWindow is created and shown on the client and thus you should make your logic to reopen it and this is how it works. What I suggest and recommend, however, is to ajaxify the paging - you will get two advantages from this: 1) you will avoid the postback and thus get a better user experience and 2) in this scenario, the RadWindow will not hide and you will not have to deal with implementing reopening logic.

Regards,
Svetlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Tim
Top achievements
Rank 1
answered on 03 May 2011, 01:31 PM
To Telerik support, and other interested parties.

Some else at our company provided what I hope is the correct missing piece.

Turns out I just hadn't looked at the appropriate sample code on your web-site.

The crucial step that eliminated both of the bad behaviors I was seeing was to create
a separate web-page with my content and point the RadWindow to that page.

Now I get the behavior I want.

I am still unclear why putting a ContentTemplate block in a RadWindow invoked from a
Master Page derived page doesn't work, but it doesn't.

One additional note.
I had chosed the FlyIn animation and it didn't work the first time I invoked the RadWindow.
In this scenario I was invoking the RadWindow from inside a User Control on the
Master page.

If we move the definition and invocation outside of a user control the FlyIn works on ALL
invocations of the window.

HTH
0
Svetlina Anati
Telerik team
answered on 06 May 2011, 10:31 AM
Hi Tim,

 It seems that there is something wrong on your side. However, as already explained, we will really need to debug sample reproduction code since we have not seen such an issue before and we cannot assume what might be causing it. Please, send us working sample code along with detailed explanations because otherwise we cannot resolve the problem. Once we get a better understanding on the reason for the problem, we will do our best to help.

All the best,
Svetlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
saeed
Top achievements
Rank 1
answered on 06 Oct 2012, 04:01 PM

Hi

you can solve this problem by adding this line in page_load 

RadWindowManager1.Windows[0].OpenerElementID = RadButton1.ClientID;

0
Diego
Top achievements
Rank 1
answered on 02 Nov 2015, 06:29 PM
Why?
Tags
Window
Asked by
Tim
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Tim
Top achievements
Rank 1
saeed
Top achievements
Rank 1
Diego
Top achievements
Rank 1
Share this question
or