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

want to radwindow open on javascript

2 Answers 162 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Coolbudy
Top achievements
Rank 1
Coolbudy asked on 11 Jun 2013, 11:19 AM
Here is my javascript that open simple browser popup but i want to open using radwindow i'm new for telerik control so how can i do this?

<script language="javascript" type="text/javascript">
            function openTest(num, cid) {
                var nAgt = navigator.userAgent;
              
                if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB10/i.test(navigator.userAgent))
                    window.open("default.aspx?ChapterNum=" + num + "&cid=" + cid, "DefaultPage");
                else
                window.showModalDialog("Course.aspx?ChapterNum=" + num + "&cid=" + cid, null, "dialogHeight=700px; dialogTop=75px; dialogLeft=250px; dialogWidth=800px; edge=Raised; center=No; help=Yes; resizable=no; status=no; scroll=yes");
          
            }
</script>

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Jun 2013, 01:15 PM
Hi,

The following article explains how a RadWindow can be opened with JavaScript: http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html. You can declare the desired settings for the popup in its markup, or you can use its client-side API to modify it after you show it: http://www.telerik.com/help/aspnet-ajax/window-programming-radwindow-methods.html.


Regards,
Marin Bratanov
Telerik
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 the blog feed now.
0
Shinu
Top achievements
Rank 2
answered on 11 Jun 2013, 01:18 PM
Hi,

To open RadWindow via javascript please try the following code.
JS:
function OpenRadWin()
{
  var oWnd = $find("<%= radWindow.ClientID %>");
  oWnd.radopen(null, "radWindow");
}

Also check the following help documentation.
Opening Windows

Thanks,
Shinu.
Tags
General Discussions
Asked by
Coolbudy
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Shinu
Top achievements
Rank 2
Share this question
or