Change the Error Icon Position when cell is NumberCellType

Posted by: rainriku on 8 September 2017, 3:24 pm EST

  • Posted 8 September 2017, 3:24 pm EST

    I want change the position of the ErrorIcon if the cell is numbercelltype since the ErrorIcon overlaps the value if the data is in the right side of the cell.

    I found out about interface IErrorIconRederer and the Class DefaultErrorIconRenderer to be inhereted but i cannot seem to override it,
    i'm using spread 7 btw.

    Is there another way to change the position of the erroricon? since it overlaps the value

    Here's an example of the issue

    Thanks

  • Marked as Answer

    Replied 8 September 2017, 3:24 pm EST

    Hi,

    You can override the DefaultErrorIconRenderer with a custom implementation for Paint, then set it to SpreadView.ErrorIconRenderer.

    Regards,
    -Sean
  • Replied 8 September 2017, 3:24 pm EST

    I can already transfer the Icon but the ErrorText remains on the default position.
    Is it possible to change also the position of the ErrorText?
    It seems you can only hover it on the default position.

    Thank you
  • Replied 8 September 2017, 3:24 pm EST

    Hi,

    It does not appear to be possible to customize the location where the cell error popup is shown on hover over the error indicator.
    The point where the popup is shown is calculated from the rectangle for the cell error indicator, which is returned from the cell type's implementation for GetErrorIconBound.

    If you want to customize the position of the error icon and error popup for a particular cell type, then overriding GetErrorIconBound is the way to do it.

    Regards,
    -Sean
  • Replied 8 September 2017, 3:24 pm EST

    This is good for me.

    Thank you
  • Replied 8 September 2017, 3:24 pm EST

    Hello,

    We are glad to know that your issue has been resolved.

    Thanks,
    Reeva
Need extra support?

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

Learn More

Forum Channels