8/24/2025 1:34:59 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Scrollbar behaviour on Dynamic grid; how to make it stick?
Posted: 04 Jun 08 5:09 AM
|
Hey guys,
I've got an issue with a dynamically-built grid; that is, a grid which at design time has no columns, and is populated through code at runtime. The issue is that despite having set the Scrollbars property of the grid (at design time) to ssVertical, when the grid appears at run time the scrollbar does not appear. Specifically, it only appears when necessary, rather than always being visible. I require it to be visible at all times. I've also tried setting the property again in the code, but this also has no effect; the scrollbar still appears only when required (as in, there are more rows in the grid than what the grid can display on the screen).
Is there a way around this behaviour, or is it a limitation that I'll have to accept? Any advice you can offer would be greatly appreciated, as I've already wasted more time than I should have trying to get this to work!
Thanks,
Alec D |
|
|
|
Re: Scrollbar behaviour on Dynamic grid; how to make it stick?
Posted: 04 Jun 08 9:05 AM
|
I wonder why you absolutely need it at all times but that's a personal preference question. We also don't know which version of SalesLogix. They make minor adjustments to the control with each major version so it's possible if you're not on 7.2.x then maybe it's "fixed" there.
If I had to guess though I'd say this is FAD (functioning as designed). The control is a picky beast to begin with and even though you're telling it basically "set this scrollbar type always" it's not a "always show scrollbars" property. It's more of a "when you need to show a scrollbar, only show this type". I don't know of any way to trick it into showing it at all times either as that'd be the only way I could think of to get the functionality you're looking for. For dynamic grids our users complain more about the lack of ability to "save" the column order versus any other control quirk. I tell them it's functioning as designed because I'm too lazy to work out how to properly save and reload contents, not to mention I don't even want to try to wrap my head around how it'd make me build the columns in the first place... |
|
|
|
Re: Scrollbar behaviour on Dynamic grid; how to make it stick?
Posted: 04 Jun 08 9:42 AM
|
Thanks for the response. I have a worrying feeling this is by design rather than by fault...
The requirement comes from an aesthetic stand-point; basically an element of the interface design requires the width of the columns in the grid to remain constant, so that something outside of the datagrid does not then appear mis-aligned when a scrollbar within it adjusts the column widths respectively... it's a bit messy but hopefully I'm making sense.
Perhaps this image will help: http://img111.imageshack.us/img111/7351/concept5kw4.png
Note that the appearance of a scrollbar in that picture has mis-aligned the 'child' column headers with the 'parent' ones. Also, version 7.2.1 is what I'm using. |
|
|
|
Re: Scrollbar behaviour on Dynamic grid; how to make it stick?
Posted: 04 Jun 08 1:02 PM
|
Are those 2 grids stacked on each other? How would the scrollbar always visible fix that problem? It'd always be misaligned unless the top 'parent' header is just a very small grid and you wanted to add a the scrollbar to it as well. If that's the case you could fill in a blank record and I believe just a single record would make the scrollbar show, but I could be wrong. It'd be hacky no matter how you did it I think.
Since you're on the latest version and I don't believe there's an "always show scrollbars" property, it does sound like your stuck. Have you thought about just making it a .NET extension? That's a lot of extra work for something that looks pretty complete as-is but it may be the best way to get the functionality you're looking for, from end to end. You wouldn't be bound by the SalesLogix controls in that scenario but that's the only alternative one I can think of. |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|