I'm using version 19.4.0.52 of the Syncfusion Windows Forms controls in Visual Studio 2022 with a .Net Framework 4.8 project.
I'm using a GridBagLayout to manage the layout of some controls in a panel.
Here's a screenshot of the controls before I set any Fill constraints on any of the TextBox controls.
Setting the Fill constraint on the first two TextBoxes didn't change the column width, but once I set it on the third TextBox, the column width was changed as seen in this screenshot.
I tried working around the issue by setting the horizontal Weight constraints of the TextBoxes to 0 and then back to 1, but it didn't change the size of the first three TextBoxes.
My expectation was that changing the horizontal Fill constraint of the TextBox would change the size of the TextBox within its column in the layout, but would leave the size of the column alone.
I had to modify your sample since the issue only occurs when there are multiple columns in the GridBagLayout.
I've zipped up and attached the sample. When you open it, you'll see it in the same state as the first screenshot below. The second screenshot I took after I selected all the TextBox controls and set their Fill constraints to Horizontal. As I stated previously, my expectation is that the columns will stay the same size and the TextBox controls will expand in width to fill the columns they're in.
The TextBox controls have their WeightX constraints set to 1. All the other controls have their WeightX constraints set to 0.
Hi David,
Fill type specified when initializing the instance will work as expected. However, runtime change for this property will not refresh the layout when there are multiple columns. This is the expected behavior of our the control, hence we are declining your request.
Sorry for the inconvenience caused.
Regards,
Gokul T
This issue is about changing the value at design-time, not runtime. Anyway, it's already been fixed as stated in the post above yours.
Hi David,
Sorry for the delay in getting back to you.
We regret to inform you that currently, we don’t have support to change layout of the Child Control at design time after initialization. But it will work fine when setting in codebehind
We have analyzed your requirement of “support to change layout of the Child Control at design time after initialization”. We have logged a feature request for the same. We will implement this feature in any of our upcoming release.
At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.
Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.
Regards,
Gokul T