I am looking for a zomm feature on Devexpress xtratreelist and xtragrid.
Is there any way we can zoomin and zoomout the Devex controls like treelist and xtragrid auto size fonts and nodes.
Please let me know if any way to acheive the zoom functionality.
Thanks in Advance
GridControl and TreeList do not provide such a capability. However, you can implement the required functionality manually by handling the GridView.MouseWheel or TreeList.MouseWheel event. In this event handler you can change fonts of necessary items and change the width of columns. In the attached sample project I have used the BestFitColumns method to accomplish this task. If the BestFitColumns method does not suit your needs, change the column width manually.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.