Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
388 views
Please Anybody can help me? 
I cann't change parent window url after radwindow close.
this is code on parent window .
 function UpdateParentPage(args) {

                if (args != null && args != '') {
                    if (args.startsWith('MoveReservation')) {
                        UpdateParentPageWithAjaxRequest('GrpResRoomRebind');
                    }
                    else if (args.startsWith('CheckIn')) {
                        window.location.reload();
                    }
                    else {
                        UpdateParentPageWithAjaxRequest('ReBindTransList');
                       // RedirePage();
                    }
                }
            }
            function RedirePage()
            {
               top.location.href= "../../Reservation/FolioNew.aspx";
            }
.....
Code on RadWindow
   function ResizeAndClose(width, height, key) {
                    //if (document.referrer.indexOf("/Update/ReservationDetails.aspx") > 0) {

                    //    top.location.href = '../../Reservation/FolioNew.aspx?';

                    //}
                    GetRadWindow().setSize(width, height);
                   
                    setTimeout('GetRadWindow().close("")', 100);
                   
                    GetRadWindow().BrowserWindow.UpdateParentPage(key);
                    GetRadWindow().BrowserWindow.RedirePage();

                   
                }

What i want is after process this  GetRadWindow().BrowserWindow.UpdateParentPage(key), want to go redirepage. 

Shinu
Top achievements
Rank 2
 answered on 03 Dec 2013
4 answers
293 views

Hi,

I can not find any properties to maintain the current position of Multipage after the postback.

In my case, I define multipage in usercontrol from which is added to target control of RadToolTipManager.  The scroll position is always back on the top after the postback.

Regards,

Duy
Duy
Top achievements
Rank 1
 answered on 03 Dec 2013
12 answers
170 views
Hi, im using a template to create a "Close" icon where user can close particular tabs. When I drag/drop any tab to reorder, I lose the icon. Im using Q3 2012 (2012_3_1205). I fill the control dynamically in code-behind but I also experience it if defining tabs in the markup. Here is the code:

<telerik:RadTabStrip  ID="RadTabStrip1" runat="server" EnableDragToReorder="true"  >
                         <TabTemplate>
                                 <div class="CloseIcon">
                                 </div>
                                     
                                <div class="TabWrapperRight">
                                    <%# DataBinder.Eval(Container, "Text") %>
                                </div>
                        </TabTemplate>
</telerik:RadTabStrip>

CSS
.CloseIcon
{
    width: 13px;
    height: 11px;
    background:url("/Images/Icons/close.png") 0 0;
    margin: 4px 0px 0px 25px;
}

.CloseIcon:hover
{
background:url("/Images/Icons/close.png") 0 -11px;
}

.TabWrapperRight
{
position:relative;
float:right;
}

Let me know if you need more code to reproduce it.

TIA
Chanan Zass
Top achievements
Rank 1
 answered on 02 Dec 2013
1 answer
48 views
We're evaluating the trial version of the controls, but we're not getting a splitbar image, no matter which skin we select or which browser we use.
The test project is referencing runtime version v4.0.30319 of both Telerik.Web.UI.dll  and Telerik.Web.UI.Skins.dll.

The ultra simple code of our testpage:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestRadSplitter.aspx.vb"
    Inherits="WebwareNET.TestRadSplitter" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadSplitter ID="RadSplitter1" Width="100%" Height="100%" Orientation="Vertical"
            LiveResize="True" runat="server" Skin="MetroTouch">
            <telerik:RadPane ID="LeftPane" MinWidth="200" Width="200"
                Scrolling="None" runat="server">
                Inside left pane
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server">
            </telerik:RadSplitBar>
            <telerik:RadPane ID="RightPane" Scrolling="Both" runat="server">
                Inside right pane
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>

And what we see in the browser can be seen in the attached screenshot.

What do we need to do to get the splitbar image in the RadSplitBar?
Vessy
Telerik team
 answered on 02 Dec 2013
1 answer
90 views
Hi,

We are calling the autoSize method manually to resize the window in some cases after load so that it fits with content.
We had no problem with this when using Classic render mode, but when switching to Lighweight it doesn't decrease its width anymore!

See the following sample:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="window.aspx.vb" Inherits="TestaTredjepartWeb.window" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="s" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" AutoSize="true" RenderMode="Lightweight" Title="Hello" NavigateUrl="windowcontent.aspx" VisibleStatusbar="false" >
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </div>
    </form>
</body>
</html>

Content window:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="windowcontent.aspx.vb" Inherits="TestaTredjepartWeb.windowcontent" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title>This is the title</title>
    <style>
        html, body, form
        {
            padding: 0px;
            margin: 0px;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div id="div" style="background-color: red; height: 300px; width: 300px">
            test
            <asp:Button ID="btn" runat="server" OnClientClick="$get('div').style.height = '200px'; window.top.GetRadWindowManager().getActiveWindow().autoSize(); return false;" />
        </div>
    </form>
</body>
</html>


When clicking the button the height of the window should be 200px instead of 300px, but it only gets a little bit larger...
If setting RenderMode="Classic" it does work as expected!

Regards
Andreas
Marin Bratanov
Telerik team
 answered on 02 Dec 2013
1 answer
1.0K+ views

I have 2 pages (Home and Сategory) Load page Home on there's button. Click button run panel RadWindow (NavigateUrl: Сategory).

protected void ShowWindow()
    {
        string script = "function f(){$find(\"" + RadWindow_editor.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
    }
    protected void RadButtonEdit_Click(object sender, EventArgs e)
    {
        ShowWindow();
    }

Load RadWindow NavigateUrl - Сategory on there's button. Click button close RadWindow.

protected void RadButtonEdit_Click(object sender, EventArgs e)
        {
            ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "Close();", true);
        }
 function GetRadWindow() {
     var oWindow = null;
     if (window.radWindow)
         oWindow = window.radWindow;
     else if (window.frameElement.radWindow)
         oWindow = window.frameElement.radWindow;
     return oWindow; 
 }

 function Close() {
     var oWindow = GetRadWindow();
     oWindow.argument = null;
     oWindow.close();
     return false;
 }

How to refresh the page Home? (Click button close RadWindow)

Thank you!

Marin Bratanov
Telerik team
 answered on 02 Dec 2013
1 answer
67 views
Hi,

When using autosize and Lightweight, the height of the window is always 4px to large!

Sample:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="window.aspx.vb" Inherits="TestaTredjepartWeb.window" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="s" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" AutoSize="true" RenderMode="Lightweight" Title="Hello" NavigateUrl="windowcontent.aspx" VisibleStatusbar="false" >
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </div>
    </form>
</body>
</html>

Contentwindow:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="windowcontent.aspx.vb" Inherits="TestaTredjepartWeb.windowcontent" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title>This is the title</title>
    <style>
        html, body, form
        {
            padding: 0px;
            margin: 0px;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div style="background-color: red; height: 300px; width: 300px">
            test
        </div>
    </form>
</body>
</html>

As you can see the red color of the inner content doesn't fill all the way down...

Regards
Andreas
Marin Bratanov
Telerik team
 answered on 02 Dec 2013
1 answer
53 views
Hi,
I want some text to be displayed at the end of exported file. How to get this?
Princy
Top achievements
Rank 2
 answered on 02 Dec 2013
1 answer
75 views
Hi,
How can i make a textbox show empty text in editmode if the column value is empty for that row and on focusing the textbox the empty text should dissapear
Shinu
Top achievements
Rank 2
 answered on 02 Dec 2013
5 answers
858 views
Hi

In sharepoint 2010 I have a webpart with an AsyncUpload.

If I upload a file  on a local folder everything is fine, If I try to upload on a shared folder on another server I get: "Access to the path is denied".

The application pool user under the site is running has access to that folder as well as the domain user logged in to the sharepoint. I added even "everybody" with Read/Write permission on that shared folder and still the same error.

The users are all Active Directory authenticated.
I added all the AD users under the SharePoint is running and still the same error.

Under what user .SaveAs(path) is running because for sure is not the same user as the one returned by "System.Security.Principal.WindowsIdentity.GetCurrent().Name"?

Any thoughts what permission should I add to the shared folder ?

Regards,
Hans
Plamen
Telerik team
 answered on 02 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?