This is a migrated thread and some comments may be shown as answers.

External form resizes on validation errors - poor UI experience

2 Answers 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 18 May 2019, 04:59 PM

I've noticed the external form editing example has some exaggerated form resizing problems on validation errors.

https://www.telerik.com/kendo-angular-ui/components/grid/editing/external-editing/

Simply click Add, then enter alpha chars for the Units in Stock. The form widens way too much and also increases height to accomodate the unhidden text element.

Is there a way to fix the form so that it either resizes more predictably, or preferably doesn't resize and instead has space for the validation text to appear.

2 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 21 May 2019, 08:37 AM
Hello James,

Thank you for bringing this issue to our attention. Indeed, the unexpected resizing of the whole Dialog component holding the form is far from ideal. The most straight-forward approach to fix the issue is setting explicit height and width to the Dialog component.

The styling of the form validation messages can be further customized by removing the built-in k-... classes and using custom styling and/or toggling their visibility rather than completely removing them from the DOM so that the structure and spacing of the form fields are not changed when the message appears.

Here is the updated example with the described adjustments applied:

https://stackblitz.com/edit/angular-gtr77h?file=app/edit-form.component.ts

We will also make sure to update the documentation demo accordingly.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
James
Top achievements
Rank 1
answered on 21 May 2019, 11:06 AM
Thanks for the updated example. As not every field has validation the form looks odd with the empty validation elements. I think popup validation errors would look better so we're working on that approach instead. Thanks again.
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
James
Top achievements
Rank 1
Share this question
or