How to set radwindow behaviors through ClientSide javascript


<script type=”text/javascript” language=”javascript”>
function ShowPopup() {
var oWnd = radopen(“Popups/Employees.aspx”, “radWin_Employees”);
oWnd.SetTitle(“Visitors”);
oWnd.set_initialBehaviors(Telerik.Web.UI.WindowBehaviors.None);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move);
}
</script>
Advertisements

RadWindow position – always in the center of screen through ClientSide javascript


<script type="text/javascript" language="javascript">
            function ShowPopup() {
                var oWnd = radopen("Popups/Employees.aspx", "radWin_Employees");
                oWnd.SetTitle("Visitors");
                oWnd.SetSize(950, 502);
                oWnd.Center();
            }
        </script>