Hello, I'm trying to implement a control with an ultragrid that would allow the user to zoom out a great deal, similar to what is allowed in Excel. I was hoping I'd be able to accomplish this using the Zoom Panel but it appears the minimum value for ZoomProperties.MinZoomFactor is 1. Does anyone know if there is a way to get around this limitation? I've tried experimenting with setting the font of my ultragrid to something very small and setting the default zoom factor to something above 1, but this results in the non-text elements being oversized. Thank you.
While the UltraZoomPanel does support the UltraGrid, what exactly are you trying to achieve?
If the ZoomFactor is set to something lower than this value, but higher than 0, the ZoomFactor will be set to the value of this property. The default value is 1, which means that zooming out is disabled by default.
Thank you for your reply Michael.
I would like to zoom out. I had hoped I could achieve this by setting ZoomFactor to something between 0 and 1, but since MinZoomFactor is set to 1 that isn't possible. I thought/hoped I could get around this by setting MinZoomFactor to something less than 1, but doing so results in an IndexOutOfRange exception. Is there something I can do to enable zooming out?
What you can do is change the default FontSize for the entire UltraGrid to a lot less, like 7, and ZoomFactor default to something higher than 1. When the ZoomFactor is back down to 1, by the end user, it will imitate a zoom out.
HI Michael, that's what I did but as I mentioned this mostly works with the exception of the non-text UI components of the grid being oversized. I've attached a sample image. The images for the row filter and field chooser are both oversized. So is the tool tip if the user hovers over a cell.
Worst case I imagine I can construct this grid so that there are no images, but I was hoping there was some way to get past the MinZoomFactor restriction that I just wasn't seeing.
Thanks again for your help
I can have our development team investigate this. But first, please review my sample that I've attached below to confirm it's reproducing the behavior with the over sized icons.