Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2170
UltraMaskedEdit
posted

I have dropped an UltraMaskedEdit control on a GridBagLayoutPanel. If I set the SpanX to 3 the MaskedEdit control DOES NOT span 3 columns. An UltraTextEditor control does Span correctly as well as an UltraButton control. Is there something different I need to do with the MaskedEdit control?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Roger,

    There are quite a few unknowns here regarding your layout and what version you are using.

    But I tried this out using v10.2 (the oldest supported version) by placing a new UltraGridBagLayoutPanel on a form.

    In order to create some columns, I added 5 Button controls to it by doubling clicking them in the Toolbox.

    Then I added an UltraMaskedEdit control and dragged it above the buttons so it was in it's own row. Then SpanX and SpanY both default to 1, so I changed SpanX to 3.

    And I do, indeed, see a problem. The MaskedEdit control did not increase it's width to fill the three columns. In fact, it's width did not seem to change at all in my test.

    If I turned off AutoSize on the UltraMaskedEdit control and then set the SpanX, it seems to work. But since AutoSize is only supposed to affect the height of the control and not the width, it seems like there's something wrong here.

    I'm going to forward this thread over to Infragistics Developer Support and ask them to create a case for you and write this up for developer review. But in the mean time, you can turn off AutoSize and then just refresh the layout by setting SpanX to something else (1) and then back to 3 and it works.

     

Children