Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hi, 

I would like to know if it's possible for a window (modal) to open another window modal as well.

Also, I tried multiple ways to open a window using server code but none seems to work if your window is used as a control container.

Here an example

I have this page :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Page1.aspx.cs" Inherits="RadWindowTest.Page1" %>
 
<%@ 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>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div>
        <asp:Label ID="lbl" runat="server" Text="PAGE 1" Font-Size="Larger"></asp:Label><br />
        <asp:Button ID="Button1" runat="server" Text="Show Second Window"
            onclick="Button1_Click" />
        <telerik:RadWindow ID="RadWindow1" runat="server"  runat="server" Behaviors="Close" DestroyOnClose="true" VisibleStatusbar="false" AutoSize="true" Modal="true">
            <ContentTemplate>
                <asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList>
            </ContentTemplate>
        </telerik:RadWindow>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
    </div>
    </form>

     <script>
         function open() {
            /*
             var x = $find("<%= RadWindow1.ClientID %>");
             x.show();
             return false;
            */
         }
    </script>
</body>
</html>

Which open the window on the button click
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace RadWindowTest
{
    public partial class Page1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        protected void Button1_Click(object sender, EventArgs e)
        {
            DropDownList1.Items.Add(new ListItem(DateTime.Now.ToShortDateString(), DateTime.Now.ToShortDateString()));
            RadWindowManager1.Windows.Add(RadWindow1);
//ClientScript.RegisterClientScriptBlock(this.GetType(), "open", "<script>open();</script>");
        }
    }
}


What am I missing here ?



Marin Bratanov
Telerik team
 answered on 03 Aug 2011
1 answer
49 views

When I enter text in the radeditor and perform spell check. It workds fine on my machine. But it generates an error  on my clients machine. Deployments of the web application is done by client themself on there server.

Could not guess what might be the possible cause. please help

Rumen
Telerik team
 answered on 03 Aug 2011
1 answer
183 views
When typing in the Rad Editor, the Word and Character count does not update automatically.  The user must click inside the field (after typing) for the counts to update.

How can i make it to work automatically on every character entered or deleted?
Rumen
Telerik team
 answered on 03 Aug 2011
3 answers
90 views
When I use  LoadRtfContent to load a rtf file to the editor the spaces are removed.  So I have a line

Address                                                                                                                            Contact Info

and when the document is loaded it shows up as

Address Contact Info

Is there a setting/way to maitain the original format
Dobromir
Telerik team
 answered on 03 Aug 2011
1 answer
303 views
found the problem, surely nothing to do with telerik.



==============================================
Hi, I got following error we.ui.webresources.axd, and my site doesn't use HTTPS or making any HTTPS requests..... it work perfectly in local environment, but not remote, any idea?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30428; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Tue, 21 Sep 2010 21:46:15 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Line: 6
Char: 62099
Code: 0
URI: http://demo.oslagentlive.co.nz/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a6a161e57-3a11-41cf-8bb3-999f3e0c265b%3a16e4e7cd%3af7645509%3a874f8ea2%3a24ee1bba%3a19620875%3a39040b5c%3a1e771326%3aa7e79140%3aed16cbdc%3ae330518b%3ac8618e41%3aaa288e2d%3ab7778d6c%3a6a6d718d%3af9b9258%3bAjaxControlToolkit%2c+Version%3d3.0.30512.20315%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2a404968-beb9-41c5-98fb-26019e941d81%3a13f47f54%3a4e2210e2

Kevin
Top achievements
Rank 1
 answered on 03 Aug 2011
3 answers
285 views
Dear Sir:
    I have a radgrid and there is some tooltips inside the grid. i tried to use the tooltip manager for the tooltip but i found the performance is not satisfy when there are a lot of tooltips needed. Now, i changed to load the tooptip by javascript (sample on below) . Everything seem fine except the width and height, the tooltips seem cannot automatically change the tooltips width and height, i also tried to use the auto scrollbar but the scrollbar didn't show up. how can I pass the tooltip's width and height to the tooltip manager and it will resize/show scrollbar to the tooltip. is there any sample which i can follow?

i got some hints from other post  with property (OnClientBeforeShow, OnClientShow) to change the size  but i cannot make it work.



thks

From CH


function GetXMLObject()
{
    var xmlhttp=false;
          
    try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        try 
        {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) 
        {
            xmlhttp = false;
        }
    }  
  
    if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
        try {
            xmlhttp = new XMLHttpRequest();
        } catch (e) {
            xmlhttp=false;
        }
    }
      
    if (!xmlhttp && window.createRequest) {
        try {
            xmlhttp = window.createRequest();
        } catch (e) {
            xmlhttp=false;
        }
    }
      
    if (!xmlhttp)
        return null;
    else
        return xmlhttp;
}


function ShowTooltip(sender, manager, url) {
        if (manager != null) {
            var tooltip = manager.getToolTipByElement(sender);
  
            if (!tooltip) {
                tooltip = manager.createToolTip(sender);
            }
  
            if (xmlRequest != null)
                xmlRequest.Abort();
  
            xmlRequest = GetXMLObject();
  
            tooltip.show();
            var contentElement = document.createElement('div');
  
            contentElement.innerHTML = "<img src='../../images/loading7.gif' />";
            tooltip.set_contentElement(contentElement);
  
            if (xmlRequest != null) {
                xmlRequest.open("GET", url, true);
                xmlRequest.onreadystatechange = function () {
                    if (xmlRequest.readyState == 4) {
                        if (xmlRequest.status == 200) {
                            tooltip.hide();
                            contentElement = document.createElement('div');
                            contentElement.innerHTML = xmlRequest.ResponseText;
                            if (contentElement.outerText.length < 10)
                                contentElement.style.width = "100px";
  
  
                            tooltip.set_contentElement(contentElement);
                            tooltip.show();
  
                        }
                    }
                }
            }
            xmlRequest.send(null);
        }
Marin Bratanov
Telerik team
 answered on 03 Aug 2011
2 answers
184 views
How is the way to add radAjaxPanel programmatically?
I have a MasterPage . I need added in content.
I tried with this in Init event of page:

         RadAjaxPanel radajaxPanel = new RadAjaxPanel();
         radajaxPanel.ID="RadAjaxPanel3";
         radajaxPanel.ClientEvents.OnRequestStart = "conditionalPostback";

         containerUpload.Controls.Add(radajaxPanel);           


but didn't work
thanks!
July
Top achievements
Rank 2
 answered on 03 Aug 2011
1 answer
258 views
Hi,
I have my RadWindow defined in one ascx file for example "controlParent". Content of this window is another ascx file for example "controlChild". How can I close my RadWindow by asp:button in control "controlChild" ?
My aspx file:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"/>
 <user:ContolParent runat="server" ID="cParent" />

ContorlParent.ascx:
<telerik:RadWindow ID="selectorPopupWindow" CssClass="rad_window" runat="server" Title="Galeria multimediów" Width="950" EnableEmbeddedSkins="false" Skin="MSIT_sitefinityLocal"
            Height="600" VisibleOnPageLoad="false" Behaviors="Minimize, Move, Maximize, Close"
            OffsetElementID="RadGrid1">
            <ContentTemplate>
                <user:ControlChild runat="server" ID = "cChild" />
            </ContentTemplate>
</telerik:RadWindow>


ContolChild.ascx:
Grids, TextBox etc.
<asp:Button runat="server" ID="btnCancel" Text="Cancel" />


I am thankful for any help,
Mateusz Wajcowicz
Kevin
Top achievements
Rank 2
 answered on 03 Aug 2011
1 answer
98 views

Hi,

We are using RadEditor with Ajax Tab Container.

We have three tabs in tab container.
Tab 1 - RadEditor
Tab 2 - .Net Grid View
Tab 3 - .Net Grid View

In IE browser, we don't face any issue, it is working fine.

In Firefox, we are facing the following issue,
    Whenever working with Rad editor in first tab, we don't have any issue.
    But whenever, we are working with second tab and coming back to first tab, the Editor alignment goes off and the buttons available at top (first row controls - e.g., spell checker ...) are displayed in the single column instead of single row, so the control enlarges and UI is affected. In the same situation, if we hit refresh (F5), then the control regains the original alignment and look & feel.
 
Please let us know, if we are missing something.

Regards,
Guru

Rumen
Telerik team
 answered on 03 Aug 2011
1 answer
134 views
Hi,

I'm using RadBinaryImage to render database stored imagery but, in a notification email i neet it to render instead of this:
<img id="propertyImg" src="Telerik.Web.UI.WebResource.axd?imgid=900376f0988148a1a0cdb64b64d02373&type=rbi" height="50" width="50">

I need it like this:
<img id="propertyImg" src="http://servername:serverport/Telerik.Web.UI.WebResource.axd?imgid=900376f0988148a1a0cdb64b64d02373&type=rbi" height="50" width="50">

Anyone has an idea how to make it happen?

Best Regards,
Vitor Monteiro

Maria Ilieva
Telerik team
 answered on 03 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?