Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
160 views
Hi,

I am trying to change the backcolor and forecolor on mouseover and mouseout events. But it throws javascript error for LinkElement.
I had done the same for RadMenu for ASP.Net and its working fine. But this is not working for AJAX Menu.

The error shown is Item.LinkElement is null or not an object

Note:- Why am not using css for this is coz i will be knowing the colors only at runtime.

<script language="javascript" type="text/javascript">
    var oldItemForeColor = "";
    var oldItemBGColor = "";
         
    function clientMouseOver(sender, eventArgs) 
    { 
        var linkElement = eventArgs.Item.LinkElement; 
         
        oldItemForeColor = linkElement.style.color;
        oldItemBGColor = linkElement.style.backgroundColor; 
         
        linkElement.style.color = "<%= MenuBackColor%>";
        linkElement.style.backgroundColor = "<%= MenuForeColor%>";
    } 
     
    function clientMouseOut(sender, eventArgs) 
    {  
        var linkElement = eventArgs.Item.LinkElement; 
         
        linkElement.style.color = oldItemForeColor;
        linkElement.style.backgroundColor = oldItemBGColor;
    }
</script>

Please help.

Thanks & Regards

Sujith

VS
Top achievements
Rank 1
 answered on 12 Aug 2008
2 answers
330 views

I'm having difficulties accessing the client document object in a RadWindow. The Javascript Forms object is zero length and document.getElementById() doesn't find my controls either.

I've also noticed that the Sys object isn't availble, so I can't use Sys.UI.DomEvent.addHandler to create code for the Window load event (I've used this elsewhere to set the intial disabled state of a couple of buttons on my page).

My window, wndCashDetail, is declared in RadWindowManager:

<telerik:RadWindowManager ID="RadWindowManager1"   
                          Width="1200px"   
                          Height="500px"   
                          Modal="true" 
                          runat="server"   
                          Behavior="Move" 
                          OnClientClose="closeDetailsWindow"   
                          DestroyOnClose="True"   
                          ReloadOnShow="True"   
                          Title="Cash Detail"   
                          VisibleStatusbar="False" Skin="Office2007">  
</telerik:RadWindowManager>  

My window is opened by a client side call as follows:

var oWnd = window.radopen(URL, "wndCashDetail" ); 

At the top of my window I want to run the following script to add a window load event handler:

Sys.UI.DomEvent.addHandler(window"load", DisableFunctionalityButtons); 

This does not work though - I get 'Sys is undefined'. Also, document.forms.count is zero, and I can't find any of my controls with document.getElementById().

I think I must be missing something fundamental here. Is the normal DOM not available in modally opened RadWindows?

Rob
Rob
Top achievements
Rank 1
 answered on 12 Aug 2008
7 answers
209 views
I have a WSS 3.0 portal and SharePoint Designer 2007. 
RadEditor 5.2.0 has been successfully implemented and works very well.

However, for a particular site & workflow one of it's steps involves gathering some variables through an assigned task.  One of these fields (Comments) is a multi-line text box.  If the option to "Allow rich HTML" is checked then when the assigned user visits the form to collect the data the following error is thrown in the server's application event log:

 

Load control template file /_controltemplates/TelerikRadEditorHtml.ascx failed: Could not load file or assembly 'Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutralPublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. 
Opening the generated .aspx file in SharePoint Designer shows that it is created dynamically at run-time.  How can I ensure that the correct "<%@ Register TagPrefix=" entry is in the page ?
Is there a default I can use to ensure that radEditor loads without breaking the existing SharePoint resources ?

e.g. the current page directives section looks like this:


<%@ Page language="C#" MasterPageFile="~masterurl/default.master" title="New Page 1" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document"%> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><asp:content id="content2" runat="server" contentplaceholderid="PlaceHolderMain"

Lini
Telerik team
 answered on 12 Aug 2008
1 answer
92 views
hello
i am having a menu whaich is at the top of the page.also i have a grid(heirarchial)-rad.when i expanding the grid ,my menu gets scrolled.how can i keep menu static ?

reply expecting
Mathews Baby
Paul
Telerik team
 answered on 12 Aug 2008
2 answers
87 views
I've created a custom user control with a RadGrid in the control. I have several search results pages that get their data in different types of searches and end up on different pages, but the RadGrid displays the same fields and has the same actions, so instead of just copying functionality to a million places, I figured I'd create a user control and then just drop that user control on the pages.

Anyway, I need the actual code that is run in the NeedDataSource event to be called in the page including the User Control, not in the user control itself. So when the RadGrid needs a datasource, it fires the event, and that somehow fires another event to the page, the datasource is set, and then bound to the grid.

I'm not new to programming, but I am new to .NET and I'm not quite sure how to do this. I've read a little bit on OnBubbleEvent etc, but I don't quite understand how to make that work in this situation.

Edit: I'm using Visual Studio 2008 and C# as my programming language.

Any help would be greatly appreciated,
Stephanie
Stephanie
Top achievements
Rank 1
 answered on 12 Aug 2008
2 answers
214 views
I am using the latest RadControls for Ajax (RadControls_for_ASP[1].NET_AJAX_2008_2_723_dev.exe)

I have added an Eitor control to my page and added an Insert Table Control to the Toolbar. I want the user to be able to insert a table then right-click on the table to add a new row etc.

This does not work.

However, if I add another Editor Control to the page with an empty Tools Collection, a default set of tools is added at run-time (including the Add Table control) and in this case I CAN insert a table and I CAN display a context menu by right-clicking the inserted table.

Can you advise me how I can get the context menu to work in the first scenario?

<

body>

<form id="form1" runat="server">

<div>

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

</telerik:RadScriptManager>

<br />

<%

-- Context menu DOES work --%>

<telerik:RadEditor ID="RadEditor1" runat="server">

</telerik:RadEditor>

<%

-- xxxxxxxxxxxxxx --%>

<br />

<%

-- Context menu DOESN'T work --%>

<telerik:RadEditor ID="RadEditor2" runat="server">

<Tools>

<telerik:EditorToolGroup Tag="new">

<telerik:EditorTool Name="InsertTable" />

</telerik:EditorToolGroup>

</Tools>

<Content>

</Content>

</telerik:RadEditor>

<%

-- xxxxxxxxxxxxxx --%>

<br />

</div>

</form>

</

body>

Peter
Top achievements
Rank 1
 answered on 12 Aug 2008
3 answers
124 views
hi,

I have radgrid and there is a column of checkboxes.
grid has paging also.
i want that when user select the values by clicking the checkbox on page 1 and then go to any other page ans selects other checkboxes.
and now i want that when user go to the page 1 then that checkboxes should be selected.

thanks in advance.
altaf
Top achievements
Rank 1
 answered on 12 Aug 2008
1 answer
78 views
How do I find the scroll elements for a TabStrip (the HTML elements of the 'buttons' I click on to scroll the strip)?
Atanas Korchev
Telerik team
 answered on 12 Aug 2008
3 answers
177 views
Hi!

I wonder how I can get the "Apply CSS Class" drop down to only display  the classes in the CssEditor.css and not from HtmlEditorCustomStyles.css and HtmlEditorTableFormats.css.

Thanks!
Regards Cecilia
George
Telerik team
 answered on 12 Aug 2008
5 answers
183 views
When CheckChildNotes = false, the selection of nodes with children are not remembered after a postback. 

IE:  If A.2 and B.3 are selected, on postback, only A.2 is marked

\Node A
        \A.1

        \A.2
        \A.3
\Node B
        \B.1
        \B.2

        \B.3
                \B.3.1
                \B.3.2
                \B.3.3
                \B.3.4

<

telerik:RadTreeView ID="rtvTaxonomies" runat="server" Skin="Default"
              
CheckBoxes="true" SingleExpandPath="True" TriStateCheckBoxes="true"
              
CheckChildNodes="false">
       <
CollapseAnimation Duration="300"></CollapseAnimation>
       <
ExpandAnimation Duration="300"></ExpandAnimation>
</
telerik:RadTreeView>

Atanas Korchev
Telerik team
 answered on 12 Aug 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?