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

    Hi,

    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.

    Thanks,
    Krishna.
  • Replied 28 May 2020, 6:48 pm EST

    Untitled1.zipUntitled2.zip
  • Replied 29 May 2020, 12:03 am EST

    Hello,

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

    Thanks,
    Mohit
  • Marked as Answer

    Replied 1 June 2020, 6:53 pm EST

    Hello,

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

    Thanks,
    Mohit
Need extra support?

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

Learn More

Forum Channels