Sorry Jake your going to hate me soon for so many posts!
To be fair our demo / proof is almost done and we have the chart working and looking pretty slick so we are close to being good to go
Just a few issues though which i am hoping you could help clear up.
I have been using the treenodeapp as my reference and used 2 classes from this to help with the expanding and collapsing nodes, they are TreeAppNode and TreeDraggingTool.
My issue is, even though the graph is collapsable and expandable, there is no way to get the name of the parent. For example if i click on the node and capture the event, and then do node.parent i cant seem to figure out why i cant get the name. Here is my example code;
protected void goView1_ObjectSingleClicked(Object sender, GoObjectEventArgs evt)
{
GoObject obj = evt.GoObject;
TreeAppNode n = obj.TopLevelObject as TreeAppNode;
if (n != null)
{
//the line below needs to be, if n.text is equal to n's parent nodes text
if (n.Text.Equals("Click to view compound image"))
{
ClickedDataHandler c = new ClickedDataHandler("some data");
c.getImage();
}
}
}
I appreciate there is a n.parent and an n.parentnode but neither do as i would have thought they should.
My second question is, the graph draws from left to right as in the GOUserGuid example on page 160. Is there anyway to make it top to bottom instead?
Thanks for your time.