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

Set radwindow id

2 Answers 24 Views
Window
This is a migrated thread and some comments may be shown as answers.
Louise
Top achievements
Rank 1
Louise asked on 30 Sep 2013, 08:51 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 30 Sep 2013, 01:03 PM
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.
0
Louise
Top achievements
Rank 1
answered on 30 Sep 2013, 01:37 PM
Just what I needed, thanks!

Louise
Tags
Window
Asked by
Louise
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Louise
Top achievements
Rank 1
Share this question
or