Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

Window / RadWindow as Information Popup

Double-click on a word from the news below to open a window with its dictionary definiton

Telerik is adding a new product to its portfolio! Maybe you are already aware of that thanks to the numerous blog posts and comments in the press. What you might be still curious to learn, though, is how Telerik will keep its promise of opening a new era in automated web testing.

The motivation behind this product is simple - most companies today don't use automated testing! Why? Well, simply because the current tools are very complex, very expensive and very generic. If you want to test a slick web 2.0 application with more-than-basic interactivity you simply can't. And if you are using AJAX or client-side functionality (which is something standard nowadays, right) - well, forget about it. Learning today's testing tools takes forever and the price tag is just ... too high to say the least.

These times are over now. Automated web testing is finally made simple, powerful and accurate. Telerik WebUI Test Studio (powered by ArtOfTest) is designed specifically for modern web applications, which may use AJAX or even Silverlight (coming soon). There are plenty of tools and features specifically for web testing - browser abstraction (yes, indeed), convenient DOM inspector, reuse of HTML elements, etc. The Test Studio uses a true point-and-click interface so you will no longer deal with recording script files or consoles. Finally, this elegant solution is priced very affordably and supports Visual Studio Professional Edition (not just VSTS).


  • Double-click on a word from the news above to open a window with its dictionary definiton

    This example shows a common usage of the RadWindow - as an information bubble that gives more information about any word when double-clicked. This allows you to provide richer experience for your customers which don't have to browse additional pages to get the needed additional information.

    The example uses Cambridge's online dictionary, but it can easily be extended to work with any service that provides a search via query string.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.Window.UsingAsInformationPopup.DefaultCS" %>

    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag ID="Headtag1" runat="server" />
    </head>
    <body class="BODY">
        <form id="form1" runat="server">
        <qsf:Header ID="Header1" runat="server" NavigationLanguage="c#" />
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>

        <script type="text/javascript">
            function explainSelection()
            {
                var searchString = "";

                if (window.document.selection)
                {
                    var rng = window.document.selection.createRange();
                    searchString = rng.text;
                }
                else if (window.getSelection)
                {
                    searchString = window.getSelection().toString();
                }
                if (searchString)
                {

                    var urlSearchString = "http://www.answers.com/topic/" + searchString;
                    radopen(urlSearchString, "InfoPopup");
                }
            }
        </script>

        <telerik:RadWindowManager VisibleStatusbar="false" Width="650" Height="500" ReloadOnShow="true" EnableShadow="true"
            ID="RadWindowManager1" runat="server" ShowContentDuringLoad="false">
        </telerik:RadWindowManager>
        <qsf:InformationBox ID="InformationBox1" runat="server" Title='Double-click on a word from the news below to open a window with its dictionary
                    definiton'>
        </qsf:InformationBox>
        <div id="textDiv" style="font: 1em/1.2em 'Arial', sans-serif;" ondblclick="explainSelection()">
            <p>
                <strong>Telerik</strong> is adding a new product to its portfolio! Maybe you are
                already aware of that thanks to the numerous blog posts and comments in the press.
                What you might be still curious to learn, though, is how Telerik will keep its promise
                of opening a new era in automated web testing.</p>
            <p>
                The motivation behind this product is simple - most companies today don't use automated
                testing! Why? Well, simply because the current tools are very complex, very expensive
                and very generic. If you want to test a slick web 2.0 application with more-than-basic
                interactivity you simply can't. And if you are using AJAX or client-side functionality
                (which is something standard nowadays, right) - well, forget about it. Learning
                today's testing tools takes forever and the price tag is just ... too high to say
                the least.</p>
            <p>
                These times are over now. Automated web testing is finally made simple, powerful
                and accurate. <strong>Telerik WebUI Test Studio</strong> (powered by ArtOfTest)
                is designed specifically for modern web applications, which may use AJAX or even
                Silverlight (coming soon). There are plenty of tools and features specifically for
                web testing - browser abstraction (yes, indeed), convenient DOM inspector, reuse
                of HTML elements, etc. The Test Studio uses a true point-and-click interface so
                you will no longer deal with recording script files or consoles. Finally, this elegant
                solution is priced very affordably and supports Visual Studio Professional Edition
                (not just VSTS).</p>
        </div>
        <qsf:Footer runat="server" ID="Footer1" />
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451