Set radwindow id

3 posts, 1 answers
  1. Louise
    Louise avatar
    9 posts
    Member since:
    Oct 2012

    Posted 30 Sep 2013 Link to this post

    Is it possible to set a radwindow ID?
    I am attempting to get my radwindows to reopen after a postback by storing the radwindow properties in the session. To be able to do this I need to be able to get the ID of a window when it is resized or moved so that I can update the correct item in the session.

    Thanks.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Sep 2013 Link to this post

    Hi Louise,

    Please have a look into the following code I tried which works fine at my end.

    ASPX:
    <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="http://www.telerik.com"
        VisibleOnPageLoad="true" OnClientResize="OnClientResize">
    </telerik:RadWindow>

    JavaScript:
    <script type="text/javascript">
        function OnClientResize(sender, args) {
            alert(sender.get_id());
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Louise
    Louise avatar
    9 posts
    Member since:
    Oct 2012

    Posted 30 Sep 2013 Link to this post

    Just what I needed, thanks!

    Louise
Back to Top