Valentina,
It's hard to say what's going on here; the Expanded property should certainly not always be showing true if it's collapsed. I just tested this in my application where the group box starts off collapsed and clicking a button expands it, and it worked fine. What is being serialized in the designer code for the ExpandedSize property? I know that there have been bugs in the past regarding the serialization of these properties, so you may want to ensure that you have the latest hotfix.
-Matt
This seems to be caused by some of the internal workings of the UltraExpandableGroupBox in terms of its serialization and when it can safely assign the expanded size; I do feel that this is a bug, though, and you should be able to set the value in code immediately after the InitializeComponent call so you should submit this to Developer Support.
As a workaround, using the form's Load event seems to be ok for me, and should still allow you to assign the expanded state of the control based on your condition. If that cannot work for some reason, you could created a control that derives from UltraExpandableGroupBox and override the OnCreateControl method; you would call the base implementation and then set the Expanded state accordingly.
Better late than never, here is the problem : it is a bug.
Cause of problem: in designer mode, you set the expanded to FALSE
by doing so, the bug kicks in and disables the expanded property from working
Solution: in designer, set the expanded back to TRUE
Hi,
I`m not sure what is your current version, but when I try to reproduce this issue with version 11.1 up to 13.1 everything seems to work properly, so I suppose that you are using very old version. My suggestion is to upgrade your NetAdvantage product
Let me know if you have any questions
Georgi, im using NetAdvantage 2012.1
try this, change the Default Expandable option in design mode
Then when you run, add a button which sets expanded = true
then run and click the button
OK. Let me know if you need any further assistance
no, positive that it was expanded. i was trying it for several hours.
Thanks for your response and feedback.
I guess that maybe by mistake you used Enabled property instead of Expanded . I made the same mistake in the hurry.
Have a nice day !
i tried the same in vb.net
it seems to be working, but when i wrote that first comment, that was the problem. I have no idea why i cannot reproduce it now, my system was not updated
Test sample