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
1325
FieldPositionChanged isn't fired
posted

When setting field visibility in code like this:

FieldLayouts[0].Fields["FieldName"].Visibility = Visibility.Collapsed;

FieldPositionChanged event isn't fired. When changing field visibility by using FieldChooser everything is OK.

Parents
No Data
Reply
  • 27093
    posted

    Hi Anton,

     

    It turns out this is the expected behavior for code execution following the Windows Forms pattern assuming that the developer can would know when this is executed and can respond accordingly. I can suggest simply calling the EventHandler method on your own right after you modify the FieldPosition or add a similar logic right after it.

     

    Hope this makes things clearer. Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

Children
No Data