function openWindow(ID){
var manager = GetRadWindowManager();
var win = manager.GetWindowByName('OrderPreview');
win.SetUrl("/orderDetailPreview.aspx?ID=" + ID, "Order Details");
win.Show();
}
<Telerik:GridTemplateColumn>
<ItemTemplate>
<a href="javascript:openWindow('<%#DataBinder.Eval(Container.DataItem,"OrderDetailId") %>')">view</a>
</ItemTemplate>
</Telerik:GridTemplateColumn>
| <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomCenter" |
| Animation="Fade" Width="550"> |
| <WebServiceSettings Method="GetHelpTooltip" Path="services/RadControlsHelper.asmx" /> |
| <TargetControls> |
| <telerik:ToolTipTargetControl TargetControlID="imgHelp" IsClientID="true" Value="2" /> |
| </TargetControls> |
| </telerik:RadToolTipManager> |
| function AddTarget(ctl) |
| { |
| // Get the tooltipmanager |
| var tooltip = $find("<%= RadToolTipManager1.ClientID %>"); |
| var strID = ctl.id; |
| // I think the first entry is the id of the page DOM element |
| // and the second is an optional server ClientID. |
| tooltip._targetControls.push([strID, strID]); |
| // registers mouseover events, etc. |
| tooltip._initializeWebServiceToolTip($get(strID), strID); |
| } |
| <img id="imgHelp" src="images/help.gif" alt="" class="help" onload="AddTarget(this);"> |
_2a.add_beforeShow is not a functionDo you know what the problem could be? Also, I can't seem to find the Client-Side API for the RadToolTipManager object, is it available ?
https://localhost/ScriptResource.axd?d=FDOeA3HRofvWSv3eNAm2OQZnrwTCwpmI81gKOkyPTEpPeMYYWS1Cc1MXh6rlSLlBfU_kKYfySEJehs7VWhbzeg2&t=633463791500000000
Line 162 : _2a.add_beforeShow(Function.createDelegate(this,function(_2b,_2c){
<
asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<link href="../Menu.Telerik.css" rel="stylesheet" type="text/css" />
| <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Masterpage.Master.cs" Inherits="Standard.Site1" %> |
| <%@ 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"> |
| <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"/> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head id="Head1" runat="server"> |
| <title>UKLPG Standard Application</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div id="header"> |
| <div id="logo"> |
| <h1><asp:Image ID="Image1" runat="server" ImageUrl="~/Images/autogasqc.gif" /></h1> |
| </div> |
| <div id="menu"> |
| <table cellpadding="0" cellspacing="0" width="100%"> |
| <tr> |
| <td colspan="3" style="width: 553px"> |
| <asp:SqlDataSource ID="dsTheMenu" runat="server" ConnectionString="<%$ ConnectionStrings:TheConnection %>" |
| SelectCommand="GetItems" SelectCommandType="StoredProcedure" CancelSelectOnNullParameter="False"> |
| </asp:SqlDataSource> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <table cellpadding=0 cellspacing=0 align="center"> |
| <tr> |
| <td> |
| <telerik:RadMenu ID="RadMenu1" Style="z-index:3501;float: inherit;text-align:center;" runat="server" DataFieldID="ID" DataFieldParentID="Parent" |
| DataMember="DefaultView" DataNavigateUrlField="Url" DataSourceID="dsTheMenu" |
| DataTextField="Title" Skin="Telerik" ClickToOpen="True" SkinID="Standard" EnableEmbeddedBaseStylesheet="true" > |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| <DefaultGroupSettings Width="10px" /> |
| </telerik:RadMenu> |
| </td></tr></table> |
| </td> |
| <td style="height: 20px; text-align: center; width: 100px;"> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </div> |
| <div id="content" style="text-align: left"> |
| <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> |
| </asp:ContentPlaceHolder> |
| </div> |
| </form> |
| </body> |
| </html> |
I have been using telerik for a while and today while doing some QA on a page with my team I had a profound moment when I looked at my modal/page loading in firebug.
I have a simple page that uses 3 sections in a splitter, 4 tabs in the tab control and 1 editor no tools just spellcheck and I have to load all this.
<asp:ScriptReference Path="~/Scripts/Common/Core.js" />
<asp:ScriptReference Path="~/Scripts/Common/PopUp/PopUpScripts.js" />
<asp:ScriptReference Path="~/Scripts/Common/Animation/AnimationScripts.js" />
<asp:ScriptReference Path="~/Scripts/Common/Navigation/NavigationScripts.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSplitter.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/SplitterItem.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/SplitterPaneBase.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadPane.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSlidingPane.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSlidingZone.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSplitBar.js" />
<asp:ScriptReference Path="~/Scripts/TabStrip/RadTabStripScripts.js" />
<asp:ScriptReference Path="~/Scripts/TabStrip/MultiPage/RadMultiPageScripts.js" />
<asp:ScriptReference Path="~/Scripts/Dialogs/DialogOpener.js" />
<asp:ScriptReference Path="~/Scripts/Window/RadWindow.js" />
<asp:ScriptReference Path="~/Scripts/Editor/RadEditor.js" />
<asp:ScriptReference Path="~/Scripts/Editor/Modules.js" />
<asp:ScriptReference Path="~/Scripts/Spell/SpellCheckService.js" />
<asp:ScriptReference Path="~/Scripts/Editor/AjaxSpellCheck.js" />
Am I missing something or is this more js than you ever thought you would need to pull something like this off.
It would be great if someone would post back and tell me to make sure and click the property that says "not really as much js" but I have a feeling that is not going to happen. I dont mean for this to be a blog but I am curious of the community feedback on the general topic and my scenario.
Thanks and I do love telerik products
John
