Hi All,
I'm currently using the Splitter to seperate an UltraChart from an UltraPanel (the panel contains an UltraCheckEditor and an UltraGrid). The panel containing the grid resides in the splitter (docked to the bottom of the parent control) and the chart occupies the remainder of the space by setting it's DockStyle property to Fill. (see below for a screen-shot)
The splitter is working as expected except for the splitter (or it's contents) do not shrink when it's parent control/form shrinks. This allows the user to resize the control/form so that the splitter and the button to expand and collapse it are placed outside of the bounds of the parent like so...
The interesting thing I noticed was if you collapse the splitter, shrink the parent, and then expand the splitter, if the splitter was too big for the new size of the parent it will now only occupy the maximum possible amount of space in the parent.
I'd therefore like the splitter (or its contents) to be resized to fit the area if the size of it's parent shrinks if that's possible.
The problem is this control is moved around it's application - placed into different controls of different sizes.
I did try and implement a workaround by handling the SizeChanged event of the parent control and collapse and expand the control to try and replicate the behaviour of when the user collapses, resizes parent and expands. The code i used to collapse and expand the splitter was as follows:
MyUltraSplitter.Collapsed = true;
MyUltraSplitter.Update();
MyUltraSplitter.Collapsed = false;
There was an issue here, however, whereby the splitter, once collapsed cannot be expanded again by clicking the button on the splitter. Instead, the user has to drag the splitter to open it, collapse it and expand it again.
Could anyone tell me if this is a bug, something I'm doing wrong and whether there's a workaround, please?
Help would be greatly appreciated!
Cheers,
Richard
I understand this may not be to do with the Infragistics control(s) directly, and may be just a simple .NET concept I'm missing, but does anyone have any ideas?