Home - Forums-.NET - FlyTreeView (ASP.NET) - Correct Events

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Correct Events
Link Posted: 14-Jul-2008 20:38
I have the events working now, and the binding. I am still having the strange occurence of the drag & drop being under the the Treeview.
Link Posted: 14-Jul-2008 23:53
You have something strange with your CSS or document structure.
Could you please give a sample on how to reproduce your behavior? (sample page)
Link Posted: 15-Jul-2008 01:27
I believe this is the issue: Here is the page: <%@ Register Assembly="NineRays.WebControls.FlyTreeView" Namespace="NineRays.WebControls" TagPrefix="NineRays" %> Untitled Page

Assets

Code behind: Imports System.Data Imports System.Data.SqlClient Imports System.Drawing.Color Imports NineRays.WebControls Partial Class TestA Inherits System.Web.UI.Page Dim conStr As String = String.Empty Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here If Not IsPostBack Then BindAssetTree() End If End Sub Private Sub BindAssetTree() conStr = Session.Contents("ConnectionString") ' Create sample data ' each and every query result is assigned to this dataset object Dim ds As New DataSet Dim con As New SqlClient.SqlConnection(conStr) Dim bindings As New FlyNodeBinding ' passing the query into to SqlDataAdapter for the NULL value .. means the root Dim da As New SqlClient.SqlDataAdapter("SELECT * FROM Assets where AssetType 'No Parent' ORDER BY Id", con) con.Open() da.Fill(ds) 'Close the connection to free up the resources con.Close() ' Call FlyTreeView.ConvertTabularDataToHierarchical method to convert into hierarchical datasource Dim hierarchicalData As IHierarchicalEnumerable = NineRays.WebControls.FlyTreeView.ConvertTabularDataToHierarchical(ds, "Table", "Id", "ParentId") bindings.TextField = "AssetType" bindings.ValueField = "Id" Me.flyTreeView2.DataBindings.Add(bindings) ' Bind the treeview flyTreeView2.DataSource = hierarchicalData flyTreeView2.DataBind() End Sub Protected Sub flyTreeView2_InsertCallbackNodesFromValue(ByVal sender As Object, ByVal e As InsertCallbackNodesFromValueEventArgs) e.Nodes.Add(New FlyTreeNode(e.Value, e.Value)) End Sub Protected Sub flyTreeView2_OnNodeMoved(ByVal sender As Object, ByVal e As FlyTreeNodeMovedEventArgs) End Sub Protected Sub flyTreeView2_OnNodeSelected(ByVal sender As Object, ByVal e As FlyTreeNodeEventArgs) End Sub End Class
Link Posted: 15-Jul-2008 01:55
Yes, looks like absolute positioning brings the problem. Try to play with z-Index value.