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

6 posts, 0 answers
  1. Tim
    Tim avatar
    57 posts
    Member since:
    Apr 2011

    Posted 28 Apr 2011 Link to this post

    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 
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 02 May 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tim
    Tim avatar
    57 posts
    Member since:
    Apr 2011

    Posted 03 May 2011 Link to this post

    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
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 06 May 2011 Link to this post

    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.

  6. saeed
    saeed avatar
    4 posts
    Member since:
    Nov 2007

    Posted 06 Oct 2012 Link to this post

    Hi

    you can solve this problem by adding this line in page_load 

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

  7. Diego
    Diego avatar
    1 posts
    Member since:
    May 2015

    Posted 02 Nov 2015 in reply to saeed Link to this post

    Why?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017