Hi,
II do have multiple(around 6) ultraexpandablegroupboxes on a single form and i used 6 panels to set those as parent.
Problem is, when i collapse the group boxes i did not want any space among those boxes or panels and also when i expand them the locations should be back to normal place. Since i have almost 6 boxes it will be hard to write by looping and setting up the location properties for each expandablegroupbox.
Please suggest me if infragistics have any simple way to implement this concept.
I really appreciate if you help me on this.
Thanks.
I'm not sure exactly what you mean here when you say that you do "not want any space among the boxes or panels". Do you mean between them? I don't think that this is anything that we would have any control over, but is rather the responsibility of the associated layout manager. I tend to accomplish the auto-positioning logic using a series of Dock properties, sometimes with nested panels as the need arises since this will take care of shifting a control when another is resized.
-Matt
Thanks for the reply Matt,
Yeah i was talking about space between the panels. Just in case if i want to collapse the middle expandablegroupbox all other group boxes should reposition accordingly. I do not want any gap or space in between them.
What sort of Dock properties you are talking about? and what about using UltraGridBagLayoutManager and UltraGridBagLayoutPanel?
Can you tell me what did you use for auto-positioning logic as well.
Really appreciate your help. Thanks alot Matt.
Excellent Matt. Thanks a lot. Great Job.
The Dock property I was referring to is on the Control class, which you should basically see on most, if not all controls; if I have, for example, 3 ExpandableGroupBoxes docked to the top of the form and I collapse the middle one, the bottom one will shift up automatically since the middle control has now shrunk in size. If you have other controls that are not directly below the controls that are being collapsed, I'm not sure that there's any automatic way of doing this.
As for using the UltraGridBagLayoutManager or panel, I'm not familiar enough with these to say whether they would automatically position the other controls when one is collapsed, though I'd think that a FlowLayoutPanel would do this along the direction that you have the flow set. I haven't done any other auto-positioning logic besides these, since using a single one or multiple combinations of these usually cover most situations. You can consider nesting panels within other panels and have the Dock property set on the controls differently to control the behavior as well.