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
582
Moveable Fields - find the new order by code
posted

How can I retrieve the Field order at a given time, just the way that the user has placed them?

If I look in the FieldLayouts[0].Fields list they seem to always have the same order and index.

 /Carl

 

Parents
  • 2125
    posted

    Hi tempcaken,

    In answer to your question I would like to use the comment made by Joe Modica related to the issue:

    "The order of the Fields in the collection will not change when columns are moved. 
    The reason is that the Fields can be moved in such a way that they create complex multi-row layouts with row and column spanning.  In this case there is no clear linear order that could be represented simply by the position of the Fields in the Fields collection.
    If the developer wants to examine Field positions and take some action based on a position, he can look at the Field.Row, Field.RowSpan, Field.Column and Field.ColumnSpan properties to determine the position of a given Field." 

    Best Regards,
    Yanko

Reply Children