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
515
change field layout during runtime
posted

hi there,

i'd like to add various field layouts in the resources and change the field-layout object during runtime.

the example i found in your forum was to modify the exisisting field setting object which seems a quite long way winded in my use case.  (there is no clone method for the field object)

so i come back to the strategie in assigning a new fieldlayout object. my question is: where shall i assign it in order to take effect? ( i see various properties that store a field layout, including the record)

or don't you recommend that strategie?

karle

Parents
No Data
Reply
  • 7305
    Suggested Answer
    posted

    Hello Karl,

    In order to assign new FieldLayouts dynamically; which probably has been pre-populated in XAML; you need to raise the AssigningFieldLayoutToItem event and assign the FieldLayout by setting e.FieldLayout to your desired FieldLayout.

    Sam

Children