Hi,
Still can''t get this to work.
LeftImageIndices is not a member of TreeNodeAdv. The nearest thing I could find was TreeNodeAdv.NodeData.LeftImagesIndexes but when I tried this although I received no build or run errors my 16x16 256 colour .ico never appeared.
My code is as follows:
private System.Windows.Forms.ImageList FolderImages;
private void InitializeComponent()
{
this.FolderImages = new System.Windows.Forms.ImageList(this.components);
//
// FolderImages
//
this.FolderImages.ImageSize = new System.Drawing.Size(16, 16);
this.FolderImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("FolderImages.ImageStream")));
this.FolderImages.TransparentColor = System.Drawing.Color.Transparent;
}
public SessionRootNode CreateSessionRootNode(string text)
{
SessionRootNode sessionRootNode = new SessionRootNode(text); // subclass of TreeNodeAdv
sessionRootNode.NodeData.LeftImageIndexes = new int[] {0};
return sessionRootNode;
}
I''ve only just discovered the latest version 2.0 release and am currently downloading it. Is LeftImageIndices specific to version 2?
>Hi,
>
>1. Set the RightImagList and LeftImageList properties of the TreeViewAdv to an ImagList.
>
>this.treeViewAdv1.LeftImageList = this.imageList1;
>this.treeViewAdv1.RightImageList = this.imageList1;
>
>2. Set the approproiate ImageIndices value for the left and right images :
>
>treeNodeAdv1.LeftImageIndices = new int[] {0};
>treeNodeAdv1.RightImageIndices = new int[] {1};
>
>Please refer to the
treenodeadvsample_attached that illustrates this. Let me know if you need further assistance. Thanks for choosing Syncfusion products.
>
>Regards,
>Guru Patwal
>Syncfusion, Inc.