RadWindow attributes

6 posts, 0 answers
  1. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 02 Dec 2009 Link to this post

    hi everyone,

    i just noticed 1 thing bout this control.
    after my radwindow poped up once the next pop of same radwindow it loose the attributes which i defined..

    any kind of help would be appreciated..

    thanks in advance

    regards
    webster
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 02 Dec 2009 Link to this post

    Hi Webster,

    I suppose that you use the radopen() or oWinowManager.open() method in order to open a new RadWindow. If this is the case, the reason for the unexpected behavior can be that you set the DestroyOnClose="true" property of the RadWindow control. In this case every time you open a new window, the properties from RadWinowManager are taken and applied to the newly opened RadWindow.
    If the above suggestion did not help, could you please provide little bit more information about your setup. Once I have a better view over your configuration I will do my best to provide a solution as soon as possible.

    I hope this helps.

    Greetings,
    Fiko
    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. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 02 Dec 2009 Link to this post

    Hi Webster,

    I suppose that you use the radopen() or oWinowManager.open() method in order to open a new RadWindow. If this is the case, the reason for the unexpected behavior can be that you set the DestroyOnClose="true" property of the RadWindow control. In this case every time you open a new window, the properties from RadWinowManager are taken and applied to the newly opened RadWindow.
    If the above suggestion did not help, could you please provide little bit more information about your setup. Once I have a better view over your configuration I will do my best to provide a solution as soon as possible.

    I hope this helps.

    Greetings,
    Fiko
    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.
  5. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 03 Dec 2009 Link to this post

    yes i use those 2 method to open new rad window.. i try to set that property to false.. thanks
  6. Garry
    Garry avatar
    43 posts
    Member since:
    Sep 2012

    Posted 03 Apr 2012 Link to this post

    I tried this approach but it does not work.
    I can therefore confirm that the 2012.1 release does not preserve attributes in RadListBox items when the page is opened in RadWindow.
    Can you please suggest a workaround or a time when this will be fixed?
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 04 Apr 2012 Link to this post

    Hello Garry,

    The page you open in the RadWIndow is disposed in three cases when reopening a RadWindow which can cause you to lose your dynamically created items:
    1) the entire page that holds the RadWindow is disposed (a full postback) or at least this RadWindow is disposed (an AJAX request that updates it)
    2) the RadWindow is closed on the client and DestroyOnClose is set to true
    3) the RadWindow is closed on the client and has the ReloadOnShow set to true, which appends a random querystring to the iframe's src when it is reopened, which causes the browser to perform a new request for the page, thus ignoring viewstate from previous postbacks inside the content page. If you create your items programmatically they will not be persisted across different requests to the page. This behavior would be the same if you load your content page directly in the browser and fully reload it (add some querystring to its address or a full browser reload, usually ctrl+f5).

    A fourth case is some custom code that reloads the content of the RadWindow (e.g. a call to its reload() method, a change in its URL, e.g. via the setUrl() or radopen() methods), so you may also want to check for this.


    All the best,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017