Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
207 views
Hello

I have been tasked with upgrading all the telerik controls on our project to the new prometheus ones..
So far it is mostly going smoothly but I am having problems with the rad windows.
Everywhere I have "GetRadWindowsManager()" it has stopped working. This is always returning null.

I have read the post here,
http://www.telerik.com/community/forums/thread/b311D-beacgk.aspx

that is having a similar problem, and have tried adding Sys.Application.add_load(
around some of the calls to the window I am trying to open, but it still doesn't work.

One example of where it is used..

The open window JS function:

function openWindow(ID){
var manager = GetRadWindowManager();
var win = manager.GetWindowByName('OrderPreview');
win.SetUrl(
"/orderDetailPreview.aspx?ID=" + ID, "Order Details");
win.Show();
}

and within a radgrid is 

<Telerik:GridTemplateColumn>
<ItemTemplate>
<a href="javascript:openWindow('<%#DataBinder.Eval(Container.DataItem,"OrderDetailId") %>')">view</a>
</ItemTemplate>
</Telerik:GridTemplateColumn>


This method is used on numerous pages throughout our project so alot of things are now broken..

Please can you advise how I initilize the GetRadWindowManager() function so it will work..

Thanks

Bex

Svetlina Anati
Telerik team
 answered on 04 Jun 2008
3 answers
257 views
Hi,

Using RadToolTip v2008.1.515.20, I'm trying to add a ToolTipTargetControl via Javascript in the RadToolTipManager object to achieve the same result as this:
<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> 

I tried adapting a version from this old post but still gets errors. Here's the function I use :
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); 
}

I try to attach the tooltip to an image from the onload event like this :
<img id="imgHelp" src="images/help.gif" alt="" class="help" onload="AddTarget(this);"> 

and get the following error that seems to be from the RadToolTip javascript:
_2a.add_beforeShow is not a function
https://localhost/ScriptResource.axd?d=FDOeA3HRofvWSv3eNAm2OQZnrwTCwpmI81gKOkyPTEpPeMYYWS1Cc1MXh6rlSLlBfU_kKYfySEJehs7VWhbzeg2&t=633463791500000000
Line 162 : _2a.add_beforeShow(Function.createDelegate(this,function(_2b,_2c){
Do 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 ?

Thanks a lot,

Dominic.


Svetlina Anati
Telerik team
 answered on 04 Jun 2008
1 answer
165 views
Hi,

How to set or change the radtooptip height client side based on the content in OnClientBeforeShow?

Thanks in advance,kindly help me to resolve this.
 
Dhana.
Svetlina Anati
Telerik team
 answered on 04 Jun 2008
6 answers
171 views
When using the Telerik skin, the Set Image Properties dialog box is not properly drawn.  In particular, it does not have OK and Cancel buttons.  The Image manage dialog box is goofy too.  I was using this skin in the pre-Ajax version without any issues.

Thanks.

Laurie
Martin
Telerik team
 answered on 04 Jun 2008
3 answers
165 views
Hi,

I have a problem finding a solid reusable method to create multilevel hierarchical databinding with ajax radgrid that also allow editing.

All the datasources are built using codesmidth. The solution is a product im continuing for a customer, why the structure with codesmith generation and telerik is fixed.

CodeSmidth builds hierarchical objectdatasources and telerik builds hierarchical grids, but they are not compatible, unfortunately.

So I need to create a codesmidth dynamic bidir datasource and assign this in the needdatasource events, for instance when an expand is clicked. But, but, the arguments for the needdatasource events is quite poor with information, since i cannot determine which level of detailtable is being opened.

Another try was to assign a datasource to the detailtable in the detailtabledatabind event, but here i get the exception "object reference not set..." when it reaches the GetCollectionItemType in the grid.

What can I do ?

Any help is appreciated.
Sebastian
Telerik team
 answered on 04 Jun 2008
1 answer
137 views
I have the nodeclick event wired to open a file once clicked. This part works great. The problem occurs once they've closed the file, if the users next action causes a postback the nodeclick event gets fired again and they're asked if they want to open the file again. I've tried setting the clickednode.selected = false as well as number of other things and none of them seem to work in getting the page to quit going back through the nodeclick event. Please let me know what i need to do. Thanks
Veselin Vasilev
Telerik team
 answered on 04 Jun 2008
2 answers
93 views
My sqlDataSource can have most different SQL select statement when clicks come from a panelbar. Hw and where do i monitor and add the columns that are assigned to my RadGrid and what are the setting of my RadGrid. Do i need AutoGenerateColumns or not.
Willem
Top achievements
Rank 1
 answered on 04 Jun 2008
1 answer
176 views
Hello,

I need help displaying the dropdown calendar of the RadDatePicker.  I dragged and dropped it into a form as usual, but the calendar dropdown  doesn't display in IE 7 or Firefox. 

I wonder if there are special folders (Skin etc) that I need to add to the project in order to get the RadDatePicker to behave correctly.  This is my first time using the Prometheus Rad Controls on a fresh project (not an upgrade). I was wondering if there are any special initial setups that are necessary.  This is because I also noticed that the Hay skin of the RadPanelBar doesn't display the green theme in my new project. 

I installed the controls using the installer and the controls were successfully installed in the Visual Studio 2005 toolbox.

Any pointer in the right direction will be greatly appreciated.

Thank you.

Victoria

Maria Ilieva
Telerik team
 answered on 04 Jun 2008
2 answers
289 views
Hi,

I have a very bizarre problem, which I am hoping someone may have some idea in solving...

I have a application which uses masterpages, on the masterpage is a RADmenu which is connected to a SQL database.  I have created a CSS file which controls the width of the radmenu.

The formatting works if the menu is in the content section, but does not work in masterpage.  I have found that if you place the stylesheet in the contentpage like this...

<

asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

<link href="../Menu.Telerik.css" rel="stylesheet" type="text/css" />


it works, but this is a real pain as it requires me to add this to every page, which sort of destroys the whole point of masterpages.  My understanding is that the page is rendered backwards starting from the contentpage and working out to the masterpage.  What is confusing me is that other elements on the masterpage are formatting correctly, its just the menu, is this a bug or am I being stupid (probably the later :o) ).
 below is my master page.  Any assistance would be greatfully recieved.
<%@ 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> 
JK
Top achievements
Rank 1
 answered on 04 Jun 2008
2 answers
232 views

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

Rumen
Telerik team
 answered on 04 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?