Hide and Show RadWindow

4 posts, 0 answers
  1. neebs
    neebs avatar
    106 posts
    Member since:
    Apr 2007

    Posted 11 Dec 2009 Link to this post

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

    Posted 14 Dec 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. neebs
    neebs avatar
    106 posts
    Member since:
    Apr 2007

    Posted 15 Dec 2009 Link to this post

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

    Posted 18 Dec 2009 Link to this post

    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.
Back to Top