Welcome Guest Search | Active Topics | Sign In | Register

ClientSideOnItemClick not firing in TreeView Options
Joan Darling
Posted: Tuesday, June 12, 2012 9:20:49 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
Is there some reason this event is not being fired when I click on the node? I have tried in all major browser versions.

This is the control
Code: HTML/ASPX
<eo:CallbackPanel ID="CallbackPanel_Tasks" runat="server" Height="300px" Width="400px" LoadingDialogID="dialogLoading">
    <eo:TreeView ID="TreeView1" runat="server" Height="317px" Width="400px" 
        ControlSkinID="None" AutoCollapseOnClick="True" 
        AutoUncheckChildren="True"
        ClientSideOnItemClick="updateTree">
        <LineImages PlusMinusOnly="True" />
        <LookNodes>
            <eo:TreeNode CollapsedImageUrl="00030301" ExpandedImageUrl="00030302" 
                ImageUrl="00030301" ItemID="_TopGroup">
            </eo:TreeNode>
            <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="_TopLevelItem" 
                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="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>
        <CheckBoxImages Margin="3" Visible="True" />
        <TopGroup Style-CssText="border-bottom-color:#999999;border-bottom-style:none;border-bottom-width:1px;border-left-color:#999999;border-left-style:none;border-left-width:1px;border-right-color:#999999;border-right-style:none;border-right-width:1px;border-top-color:#999999;border-top-style:none;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>
</eo:CallbackPanel>


This is the js function
Code: JavaScript
function updateTree(e, eventInfo) {
    var item = eventInfo.getItem();
    eo_Callback("CallbackPanel_Tasks", item.getValue());
}
Joan Darling
Posted: Tuesday, June 12, 2012 9:37:55 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
Please disregard. It was syntax error in a different function that caused the problem.


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.