-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kendo support seems partly outdated: broken layout #2511
Comments
So if I understood you're looking for a horizontal layout which can be done by overriding the default form-field kendo wrapper You may check bootstrap example https://formly.dev/examples/bootstrap-specific/bootstrap-horizontal and to apply the layout globally use FormlyModule.forRoot({
wrappers: [{
- name: 'form-field-horizontal',
+ name: 'form-field',
component: FormlyHorizontalWrapper
}],
}), |
Ehm, are you responding to a different question? :-) No, I don't want an horizontal layout, and I don't want to use Bootstrap. I want to use the default Kendo templates but they don't have the expected result. They are suppossed to render a "vertical" form but instead everything flows horizontally. It's not just in my code, the official formly examples on Stackblitz have the same problem. But there it's less evident as the examples only show one field at once. But you can see there is a problem because the label appears next to the input instead of above it. And if you add other fields they too are added horizontally. So I think the current formly version isn't compatible anymore with the latest Kendo UI version? |
Well if the layout from Kendo has been changed we may consider it as a Feature that can be only implemented in a major version due to BC. |
Ok, thanks.
It seems like kendo-formfield doesn't allow to inject a ng-template. When I run the code, it throws an exception: I've also tried with ng-content instead of ng-template. Do you know by any chance an easy solution for this? |
Well in that case the easy solution is to define each type separately without the wrapper as the new implementation is quite similar to the material UI which we've solved in a hacky way. |
Are there plans to get this fixed? Formly+Kendo integration doesn't seem to work well at all. |
@tomvanoost not sure what doesn't seem to work 🤔 , for newer version please check https://github.com/ngx-formly/ngx-formly/releases/tag/v6.0.0-next.4 https://main.formly.dev/ui/kendo |
The layout has serious issues. |
@aitboudad The Kendo controls used in the examples/pages that you send me are very much outdated. |
we may check them once time allows but PR is welcomed 🙏 https://github.com/ngx-formly/ngx-formly/tree/main/src/ui/kendo |
This issue has been fixed and released as part of v6.0.0-next.9 release. Please let us know, in case you are still encountering a similar issue/problem. |
Hi,
When using Formly with the current version of Kendo UI, there is something wrong with the form field layout: the entire form contents (fields, labels, buttons) is just flowing horizontally.
Just compare the examples on formly.dev with the versions on Stackblitz and you see the difference.
vs
The problem doesn't just apply to the label / control but to the entire form contents.
Example:
I don't know if this is the cause but the html generated by Formly (in all cases; on examples on formly.dev and stackblitz) is totally different than the html on the documentation of Kendo UI.
E.g.
I guess this is due to a version issue?
This problem makes Formly virtually unusable to us. Unless we rewrite all field and wrapper templates ourselves.
The text was updated successfully, but these errors were encountered: