Setting ImageListAdv as the imagelist of TreeViewAdv ~ Split from 196516

Thanks for the response.  Here is what I am seeing, but funnily enough I am also getting the error in the screenshot you mentioned.  In the drop down list I would expect to see ImageListAdv alongside the standard imagelist.


Screenshot 2025-03-31 112810.JPG

Screenshot 2025-03-31 113029.JPG


1 Reply

RM Rabina Murugan Syncfusion Team April 2, 2025 12:51 PM UTC

Hi typod,

We have reviewed the reported scenario. TreeViewAdv does not natively support ImageListAdv for adding image list. It only supports the standard ImageList.
Since ImageListAdv has a known design-time issue is mentioned in this update,  you can add images to ImageListAdv and  convert ImageListAdv to ImageList using the ToImageList() method. This will ensure DPI compatibility while allowing TreeViewAdv to use the images from ImageListAdv.
Code Snippet :
this.imageListAdv.Images.Add(Image.FromFile(imagePath));
this.imageList = this.imageListAdv.ToImageList();
this.treeViewAdv1.LeftImageList = this.imageList;


Output image for reference : 

Output.png

For further reference, please check the attached sample demonstrating this implementation.
Kindly let us know if you need any further assistance.
Regards,
Rabina



Attachment: ImageListAdv_TreeViewAdv_5992579c.zip

Loader.
Up arrow icon