Rank: Advanced Member Groups: Member
Joined: 5/31/2007 Posts: 36
|
when setting auto check parent to true and checking one of the nodes the parent get the "Indeterminate" state, after post back the checkobx is cleared on the parent node and the state is not saved.
<%@ page language="C#" autoeventwireup="true" codefile="Default.aspx.cs" inherits="_Default" %>
<%@ register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %> <!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"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <eo:treeview id="TreeView1" runat="server" height="250px" width="200px" controlskinid="None" onitempopulate="TreeView1_ItemPopulate" loadinglookid="look1" oninit="TreeView1_Init" onload="TreeView1_Load" autocheckchildren="True" autocheckparent="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> <eo:treenode collapsedimageurl="~/images/loading.gif" 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="~/images/loading.gif" imageurl="~/images/loading.gif" itemid="look1" 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;" text="Please wait..."> </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;"> <nodes> <eo:treenode imageurl="00030303" text="Node1" showcheckbox="True"> <subgroup showcheckbox="True"> <nodes> <eo:treenode showcheckbox="True" text="Node2"> <subgroup showcheckbox="True"> </subgroup> </eo:treenode> <eo:treenode showcheckbox="True" text="Node3"> <subgroup showcheckbox="True"> </subgroup> </eo:treenode> </nodes> </subgroup> </eo:treenode> </nodes> </topgroup> </eo:treeview> <asp:button id="Button1" runat="server" text="Button" /> </form> </body> </html>
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Looks like a bug. We will look into it and see what we can find!
|