N
Naim Rizk
hi,
I have a treeview with nodes that contain images of a checkbox. it can
be an image of a checked or unchecked checkbox. When a user click on a
node the image of the checkbox will change from checked to unchecked and
vice versa. And of course that will be done on the client side.
i added this javasript function.
function myfunction(){
SelectedNode =
event.srcElement.getTreeNode(event.treeNodeIndex);
if (SelectedNode.ImageUrl == "image1") {
SelectedNode.ImageUrl= "image2";
else
SelectedNode.ImageUrl= "image1";
}
anyway event.srcElement.getTreeNode(event.treeNodeIndex) is returning
null.
I have a treeview with nodes that contain images of a checkbox. it can
be an image of a checked or unchecked checkbox. When a user click on a
node the image of the checkbox will change from checked to unchecked and
vice versa. And of course that will be done on the client side.
i added this javasript function.
function myfunction(){
SelectedNode =
event.srcElement.getTreeNode(event.treeNodeIndex);
if (SelectedNode.ImageUrl == "image1") {
SelectedNode.ImageUrl= "image2";
else
SelectedNode.ImageUrl= "image1";
}
anyway event.srcElement.getTreeNode(event.treeNodeIndex) is returning
null.