Welcome Guest Search | Active Topics | Sign In | Register

AllowDrag plus AllowEdit in TreeView? Options
Luis Angel
Posted: Monday, February 25, 2008 1:32:03 AM
Rank: Member
Groups: Member

Joined: 2/25/2008
Posts: 14
Hi,

I'm trying to set some nodes so user can drag and edit them, but it's not working properly.
If I set nodes only AllowEdit it works right, but If I set them with AllowEdit and AllowDrag then only the AllowDrag functionlity is working, and nodes are not editable.

Is this a bug? Is there a way to solve this?

Here is my ASP.NET code
Code: XML
<eo:TreeView ID="tvwOperaciones" runat="server" 
        ControlSkinID="None"  
        AllowEdit="True">
        <LookNodes>
            <eo:TreeNode CollapsedImageUrl="00030301" 
                DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;color:Gray;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;" 
                ExpandedImageUrl="00030302" ImageUrl="00030301" ItemID="_Default" 
                NormalStyle-CssText="PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; COLOR: black; BORDER-TOP-STYLE: none; PADDING-TOP: 1px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-BOTTOM-STYLE: none" 
                SelectedStyle-CssText="background-color:#316ac5;border-bottom-color:#999999;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#999999;border-left-style:solid;border-left-width:1px;border-right-color:#999999;border-right-style:solid;border-right-width:1px;border-top-color:#999999;border-top-style:solid;border-top-width:1px;color:White;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;">
            </eo:TreeNode>
        </LookNodes>
        <TopGroup Style-CssText="border-bottom-color:#999999;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#999999;border-left-style:solid;border-left-width:1px;border-right-color:#999999;border-right-style:solid;border-right-width:1px;border-top-color:#999999;border-top-style:solid;border-top-width:1px;color:black;cursor:hand;font-family:Tahoma;font-size:8pt;padding-bottom:2px;padding-left:2px;padding-right:2px;padding-top:2px;" >        
        </TopGroup>
    </eo:TreeView>


and the code behind code that creates the nodes:

Code: C#
private EO.Web.TreeNode GetNodoDeOperacion(Operacion op)
    {
        EO.Web.TreeNode nodo = new EO.Web.TreeNode();
        nodo.Text = op.Codigo + SEP_COD_VALUE + op.Nombre;
        nodo.Value = KEY_OP + op.Id.ToString();
        nodo.ImageUrl = "~/imagenes/nodoOperacion.gif";
        nodo.AllowDrag = EO.Web.NullableBool.True;
        nodo.AllowDrop = EO.Web.NullableBool.False;
        nodo.AllowEdit = EO.Web.NullableBool.True;
        nodo.Height = 16;
        return nodo;
    }


If I comment the AllowDrag line the edit functionality works again.

Thanks in advance.
Luis
eo_support
Posted: Monday, February 25, 2008 7:26:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi Luis,

That appears to be a bug. We will fix it and get back to you as soon as possible.

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.