Using Row.GetPreferredHeight() returns invalid row heights.

Posted by: krishna.vajja on 28 May 2020, 6:47 pm EST

  • Posted 28 May 2020, 6:47 pm EST


    We are facing an issue with GetPreferredHeight().
    If we merge more than two rows and columns and both multiline and wordwrap are set to true
    And then try to get the preferred height of the row based on the text given,
    we are getting the output height more than the size of the text.
    But if we use the method for single row and multiple columns merge and both wordwrap and multiline are set to true,
    the method is giving us the correct size of the row based on the text given.

    Please help us asap in resolving this issue.

  • Replied 28 May 2020, 6:48 pm EST
  • Replied 29 May 2020, 12:03 am EST


    I have escalated the issue to the development team(SPNET-7694) and will inform you once I get any information from them.

  • Marked as Answer

    Replied 1 June 2020, 6:53 pm EST


    As per the developer, it is by design. PreferredHieght doesn't work on the merge cell.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels