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.
Hello Lee,
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?
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.
gridZoomOut.zip
Hi Michael, I downloaded the sample. I have version 18.1 installed so I had to update the references from 19; I'm not sure if there is any difference between versions.
I am seeing the oversized icons in this case. If you further reduce the grid font size- say from 7 to 3, and increase the default zoom factor the oversizing should become more apparent. Please let me know if you need any additional information from me. Thanks again.
Thanks. I created a private support case, CAS-200525-K4B4P6, and created a development issue, 261237 for our team to investigate this further.
If you have any questions, please feel free to access the case from the support activity page while logged in and access the "In Development" tab.
Terrific. Thanks again.