Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi Team,

                                    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
                                    Sai

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                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.

                                dxSample.zip
                                • Sai Yrks 01.03.2013

                                  Hi John,

                                  Thanks for your reply. The above solution works for zooming on XtraTreelsit.
                                  Currently I am facing a small issue like when teh zooming is applied on nodes the node text is not visible fully. once we focus on Node then it is showing the full text. Attached is the image.

                                  Is there any way to adjst the text perfectly to the node cell

                                  Thanks in Advance
                                  Sai

                                • Maxim (DevExpress Support) 01.06.2013

                                  Hi Sai,

                                  Based on your screenshot, it looks like your TreeList control has specific settings that customize row height. To use the AutoHight feature, please turn on the TreeListOptionsBehavior.AutoNodeHeight property and set the TreeList.RowHeight property to the -1 value.

                                  If this does not help you, please provide a simple sample to illustrate the issue so that we can proceed with our research.

                                  I hope you find this information useful.

                                You must  log in  or  register  to leave comments

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners