Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 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
81 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
64 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
86 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
905 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
1 answer
157 views
Hi,

I have one grid where im using a in cell batch edit mode, but in the page i have more 3 controls, 2 buttons and 1 RadMonthYearPicker, i need prevent any post of this controls if has any pending changes on grid....

in attachment my print screen.


Konstantin Dikov
Telerik team
 answered on 02 Dec 2013
2 answers
105 views
Hi
How to customize the page size text ? 
Ryann
Top achievements
Rank 1
 answered on 02 Dec 2013
1 answer
7.3K+ views
Good morning !

We are using a treeview for our Web Application.

This treeview is created from SQL requests.
On first load, I only load "visible" nodes (treeview is not expanded by default).

For example I load 3500 nodes (objects). And when the user expands a node, I call a new SQL request in order to display childs...
The matter is that sometimes, SQL request are a little important, and after around 1 minute the treeview timeout !

I have this error : Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.

Here is the definition of the treeview :
<telerik:RadTreeView ID="radTreeView" runat="server" CheckBoxes="True" CheckChildNodes="True"
                                Height="200px" MultipleSelect="True" OnNodeCheck="radTreeView_NodeCheck" OnNodeExpand="radTreeView_NodeExpand"
                                OnPreRender="radTreeView_PreRender" Skin="WebBlue" TriStateCheckBoxes="True" OnNodeClick="radTreeView_NodeClick"
                                Width="100%" meta:resourcekey="radTreeViewResource1">
                            </telerik:RadTreeView>

Can you please tell me how to avoid this timeout ?

Thanks and have a good day
Sunil
Top achievements
Rank 1
 answered on 02 Dec 2013
1 answer
82 views
Our users are reporting an issue with the RadEditor that I was able to recreate. Here's what happens:

1. The user adds a link to a word/phrase.
2. The user opts for Target - New.
3. The user then adds a link to a word/phrase elsewhere in the text. The dialogue box states that the Target is set to Target new, but when you view the URL, the target code is not added to the link.

I viewed this issue in FF. Is this a known issue and is there is a fix for this on the horizon.

Thanks,

Matt
Ianko
Telerik team
 answered on 02 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?