Welcome Guest Search | Active Topics | Sign In | Register

Treeview License question Options
nick mcculloch
Posted: Monday, October 20, 2008 2:14:21 AM
Rank: Member
Groups: Member

Joined: 10/16/2008
Posts: 10
I have been writing some test code for the Treeview control and I notice that to get this to work correctly I need to insert the treeview within a Callback panel (see below). Do I need to purchase a Treeview License AND a CallBack license? OR, can I use the AJAX UpdatePanel that comes with .NET ?
Nick

<eo:CallbackPanel ID="eoCallback" runat="server">
<eo:TreeView ID="eoTreeView" runat="server" AllowDragDrop="True" ClientSideOnDragDrop="drop_handler" RaisesServerEvent="true"
ControlSkinID="MSDN"
onitempopulate="eoTreeView_ItemPopulate"
onitemmoved="eoTreeView_ItemMoved" onitemclick="eoTreeView_ItemClick"
onitemrenamed="eoTreeView_ItemRenamed" >
<LookNodes>
<eo:TreeNode ItemID="_Default">
</eo:TreeNode>
</LookNodes>
<TopGroup AllowDrag="True" AllowDrop="True">
<Nodes>

</Nodes>
</TopGroup>
</eo:TreeView></eo:CallbackPanel>
eo_support
Posted: Monday, October 20, 2008 5:39:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,201
Hi,

Yes. If you use TreeView and Callback, you will need a license for both of them. However you CAN use AJAX UpdatePanel in place of our Callback.

Thanks!
nick mcculloch
Posted: Monday, October 20, 2008 6:12:55 AM
Rank: Member
Groups: Member

Joined: 10/16/2008
Posts: 10
This is now the aspx page content and I get the "The callback on ctl04 has failed because the server did not recognise this callback and processed it as a normal request ...."
This was returned after clicking on the node to load "on demand". Have I missed something here? The codebehind is creating all of the nodes from code.
Nick

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="tree.aspx.cs" Inherits="tree" %>
<%@ Register TagPrefix="eo" NameSpace="EO.Web" Assembly="EO.Web" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

<script src="javascript/TreeviewSupport.js" type="text/javascript"></script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<eo:TreeView ID="eoTreeView" runat="server" AllowDragDrop="True" ClientSideOnDragDrop="drop_handler" RaisesServerEvent="true"
ControlSkinID="MSDN"
onitempopulate="eoTreeView_ItemPopulate"
onitemmoved="eoTreeView_ItemMoved" onitemclick="eoTreeView_ItemClick"
onitemrenamed="eoTreeView_ItemRenamed" >
<LookNodes>
<eo:TreeNode ItemID="_Default">
</eo:TreeNode>
</LookNodes>
<TopGroup AllowDrag="True" AllowDrop="True">
<Nodes>

</Nodes>
</TopGroup>
</eo:TreeView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="save" />

<asp:Literal ID="litMsg" runat="server"></asp:Literal>


</form>
</body>
</html>
eo_support
Posted: Monday, October 20, 2008 6:18:54 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,201
Hi,

Please check the version number of your EO.Web.dll. I believe this is a bug that has recently been fixed.

The TreeView uses Callback to support populate on demand, there was a bug on this part and it causes the error message you saw. The new build (available on our download page) should fix the problem. You do not need a license for the Callback either because in this case the Callback is used by the TreeView, not directly by you.

Thanks
nick mcculloch
Posted: Monday, October 20, 2008 6:27:17 AM
Rank: Member
Groups: Member

Joined: 10/16/2008
Posts: 10
The version of the dll I have is 6.0.40.2. Is that not the latest version?
eo_support
Posted: Monday, October 20, 2008 6:31:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,201
No. The latest is .44, not .40.
nick mcculloch
Posted: Monday, October 20, 2008 6:54:57 AM
Rank: Member
Groups: Member

Joined: 10/16/2008
Posts: 10
Yes, thats much better. Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.