Groupbox controls not displaying in designer with "Enabled" databinding

0
0

Hi,

I have a weird issue.  If I bind to the enabled property of a groupbox, some of the controls don’t display at design time (see the attached bad.jpg vs good.jpg), they do however display correctly at runtime.

I have worked around this for now by moving the following 2 lines from InitializeComponent() to Form_Load():

this.groupBox1.DataBindings.Add(new Wisej.Web.Binding(“Enabled”, this.bsEnrolment, “CanApportionFees”, true));
this.groupBox3.DataBindings.Add(new Wisej.Web.Binding(“Enabled”, this.bsEnrolment, “CanMatchXero”, true));

Cheers,
Neil.

Attachment
  • You must to post comments
0
0

Hi Neil,

WJ-8991 is fixed in the latest Wisej dev build (1.4.99).

Best regards
Frank

  • You must to post comments
0
0

Thank you. It’s a weird issue, it happens only when there are other controls. Logged as WJ-8991, it’s fixed in the upcoming build.

 

  • You must to post comments
0
0

Hi Luca,

Here’s the form in question … I reimplemented the “buggy” behavior and zipped … you should be able to drop this into a new app – you will need to mock the bound object, I have added the class used as a guide.

I hope this helps.

Cheers,
Neil

Attachment
  • You must to post comments
0
0

Can’t reproduce. Can you reproduce in a separate small app? I dropped a groupbox, added some controls, add a binding source:

this.groupBox1.DataBindings.Add(new Wisej.Web.Binding(“Enabled”, this.dataBindingSource, “CanSave”, true));

Closed, reopened. Always works.

 

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.