This is a migrated thread and some comments may be shown as answers.

RadTreeView client events not firing in FireFox

1 Answer 98 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Sid
Top achievements
Rank 1
Sid asked on 28 Apr 2010, 11:29 AM
Hi,

I have the following Combobox and TreeView on a page.
            <telerik:RadComboBox ID="ContextCombo" DataTextField="Name" DataValueField="Id" EmptyMessage="Select Context" 
                        AutoPostBack="True" runat="server" Height="200px" Skin="Office2007" Width="250px"  
                        onselectedindexchanged="ContextCombo_SelectedIndexChanged">  
            </telerik:RadComboBox> 
 


                            <telerik:RadTreeView ID="QuestionsAndAnswersTree" runat="server"  
                            OnClientMouseOver="ClientMouseOver"  OnClientNodeDropping="onNodeDropping" 
                            <contextmenus> 
                                <telerik:RadTreeViewContextMenu ID="ContextMenuLHRootCreateQuestion" runat="server"
                                    <Items> 
                                        <telerik:RadMenuItem  
                                            ImageUrl="~/App_Themes/MasterPlan/TreeImages/question_add.png"  
                                            Text="Create Question" Value="CreateQuestion" /> 
                                     </Items> 
                                     <collapseanimation type="None" /> 
                                     <collapseanimation  
                                        type="None" /> 
                                 </telerik:RadTreeViewContextMenu> 
                         </contextmenus> 
                          
                      </telerik:RadTreeView> 
 

The client handlers are defined as
        <script type="text/javascript"
 
            function onNodeDropping(sender, args) { 
                // prompt for drag action / display dialog  
                var dest = args.get_destNode(); 
                //window.radopen("DragDropPromptDialog.aspx?EventArg=" + args, "DragPromptDialog"); 
                //args.set_cancel(true); 
            } 
            function ClientMouseOver(sender, args) { 
                return
            }  
    </script> 

When I open this page in Firefox 3.6.3 the client events do not fire.
The error console of Firefox shows me this error - ClientMouseOver is not defined + a link pointing to the error in the generated file.Clicking on the link highlights the following code in the file
<div id="ctl00_MainContent_ContextCombo" class="RadComboBox RadComboBox_Office2007" style="width:250px;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline;"

Not sure if the error has something to do with the display attribute(-moz-inline=stack)
The page works fire on IE 8.
Please help!!!!

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 03 May 2010, 09:37 AM
Hi Sid,

Thanks for contacting Telerik Support.

I've tested the code you provided. In the ticket info I see the version you are using is 2010.1 415. Is this true? With this version the code is working.

I set alert messages in both of the client-side functions to see whether the events are fired:

function onNodeDropping(sender, args) {  
                // prompt for drag action / display dialog   
                var dest = args.get_destNode();
                alert("dropping");  
                //window.radopen("DragDropPromptDialog.aspx?EventArg=" + args, "DragPromptDialog");  
                //args.set_cancel(true);  
            
               
            function ClientMouseOver(sender, args) {  
            alert("mouse is over");  
            }

Anyway from your code I see you are using onclientnodedropping event but to be able to use Drag & Drop functionality you need to set EnableDragAndDrop attribute to true:

<telerik:radtreeview id="QuestionsAndAnswersTree" runat="server" onclientmouseover="ClientMouseOver" EnableDragAndDrop="true"
           onclientnodedropping="onNodeDropping">

Find the attached test project in the .zip file.

Best wishes,
Veronica Milcheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Sid
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or