Validation border overlapping issue

Answered (Verified) This post has 1 verified answer | 3 Replies | 2 Followers Thread's RSS feed.

Boris
Points 240
Replied On: Sat, Oct 21 2017 5:00 AM Reply

Hi
I created a sample project where my problem occurs.
Validation borders are overlapping other controls and I have no idea why it happens. Could you help me with that?

IMAGE

  • Post Points: 20

Verified Answer

Nick
Points 2,260
Infragistics Employee
Answered (Verified) Replied On: Wed, Oct 25 2017 8:26 AM Reply
Verified by Boris

Hello Boris,

Thank you for your patience during our developers' team investigation.

The behavior you have described and which is illustrated in the sample you have sent is expected - the WPF framework adds an AdornerLayer to the Window in order to display the validation error borders.  Since in the sample all the cells in the grid have errors, the AdornerLayer draws the validation borders along each cell.

To achieve the desired functionality - avoiding validation borders overlapping, you can define a template for each column you want to have validation error borders and add an AdornerLayer. Then if you hide the AdornerLayer of the window, the AdornerLayers that display the error borders will be children of the grid. I have attached a small sample, which demonstrates this approach.

Sincerely,
Nick
Entry-Level Software Developer

  • Post Points: 40

All Replies

Nick
Points 2,260
Infragistics Employee
Replied On: Tue, Oct 24 2017 4:07 AM Reply

Hello Boris,

Thank you for the sample, you have sent.

After investigating the Validation border overlapping issue, I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 244764. This will be assigned to a developer in a future sprint to review my investigation and confirm my findings or to offer a fix, or other resolution.

Please let me know if you need more information.

Sincerely,
Nick
Entry-Level Software Developer

  • Post Points: 5
Nick
Points 2,260
Infragistics Employee
Answered (Verified) Replied On: Wed, Oct 25 2017 8:26 AM Reply
Verified by Boris

Hello Boris,

Thank you for your patience during our developers' team investigation.

The behavior you have described and which is illustrated in the sample you have sent is expected - the WPF framework adds an AdornerLayer to the Window in order to display the validation error borders.  Since in the sample all the cells in the grid have errors, the AdornerLayer draws the validation borders along each cell.

To achieve the desired functionality - avoiding validation borders overlapping, you can define a template for each column you want to have validation error borders and add an AdornerLayer. Then if you hide the AdornerLayer of the window, the AdornerLayers that display the error borders will be children of the grid. I have attached a small sample, which demonstrates this approach.

Sincerely,
Nick
Entry-Level Software Developer

  • Post Points: 40
Boris
Points 240
Replied On: Thu, Nov 9 2017 7:50 AM Reply

Thanks for the help

  • Post Points: 5
Page 1 of 1 (4 items) | RSS