Rank: Newbie Groups: Member
Joined: 1/17/2011 Posts: 2
|
my treeview is inside customItem, like below: <eo:CustomItem runat="server" ID="CourseTreeItem" CancelBubble="false"> <div style="PADDING-LEFT: 0px; LINE-HEIGHT: normal"> <eo:TreeView runat="server" id="tvSingleExpand" Width="158px" ControlSkinID="None" Height="550px" AutoSelectSource="ItemClick" SingleExpandMode="AllLevels" ClientSideOnItemClick="ChangeLesson"> <TopGroup Style-CssText="border-bottom-color:#999999;border-bottom-style:none;border-bottom-width:0px; border-left-color:#999999;border-left-style:none;border-left-width:0px; border-right-color:#999999; border-right-style:none;border-right-width:0px; border-top-color:#999999;border-top-style:none;border-top-width:0px; color:black;cursor:hand;font-family:Tahoma;font-size:8pt; padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;"> </TopGroup> <LookNodes> <eo:TreeNode 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;" 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> </eo:TreeView> </div> </eo:CustomItem>
<script langugage="javascript"> function ChangeLesson(e, info) { debugger; menu = info.getItem().getText(); alert(menu); } </script>
But the function ChangeLesson don't work when I click the treeview Item. No report error but don't work. Why? Please help me to solve it. Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We tested your code and it works fine. If it still does not work for you, you can try to create a full test page demonatring the problem and we will be happy to take a look.
Thanks!
|
Rank: Newbie Groups: Member
Joined: 1/17/2011 Posts: 2
|
Thanks! I have resolved the problem by binding *.xml to the treeview directly.
|