
Is it possible to use the KendoReact Form component in a Dialog/Window so that a WindowActionsBar with buttons is placed at the bottom of the dialog?
At the moment, for the dialog to work correctly, it must consist of two blocks: <container/content><actions/WindowActionsBar>. In such a case, actions bar is glued to the bottom of the window.
Unfortunately, when using the KendoReact Form component, the entire form is in a single form block. The actions bar is treated as content and is not at the bottom of the screen.
Best,
Tomek
3 Answers, 1 is accepted
Hi, Tomasz,
You are correct that the handleSubmit function is not called when it is clicked, please accept my apologies for the oversight. You can achieve the desired behavior using custom CSS styling for the Form component and use the Form submit/cancel buttons. I have modified the previous example in order to showcase this approach:
This way the buttons can be positioned exactly per your needs. Please let me know in case further assistance is required and I will gladly help.
Regards,
Ina
Progress Telerik
Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!
Hi, Ina,
Thanks for your help. The solution provided works correctly.
Regards,
Tomek
Hi, Ina
One more question. Is it possible to improve the CSS styles so that in the case of a large number of components, its content does not overlap the action bars? Attached are examples of a correct and incorrect long window.
Regards,
Tomek
Hi, Tomasz,
Thank you for the images.
In this scenario, we are using a custom CSS styling to achieve the desired behavior. You can customize the CSS to fit your specifications. I have modified the previous Stackblitz code to demonstrate an example of custom buttons styling. You might need to adjust the CSS to fit your specific application needs:
Hope that was helpful. Let me know if you have any other questions.
Regards,
Ina
Progress Telerik
Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!
Hi, Ina,
Unfortunately, this is not a good solution. WindowActionBar is not glued to the window. The window is draggable, and the actions bar is in one place of the screen.
Regards,Tomek
Hello, Tomasz,
After trying different approaches with both CSS and state management, I wasn't able to find a solution that would properly position the buttons and still allow the form to be submitted with the current implementation of the component. Since this behavior should be available out of the box and we are constantly trying to improve our product I have logged an enhancement in our official repo that will allow for easier positioning of the buttonsI recommend subscribing to the GitHub item. This way, you will receive notifications once we make any progress, since we will update it directly.Please let me know if I can assist you further.
Regards,
Ina
Progress Telerik
Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!
Hello Ina, I think I found a solution. I've added it to github.
Regards,
Tomek
Hello, Tomasz,
Thank you for your example. It is a great solution. We will create a related KB article, so I will close the public GitHub issue as fixed.
Hello, Tomasz,
Thank you for reaching out to us.
You can achieve the desired behavior using the Button inside the WindowActionsBar component. I have prepared the example below to demonstrate the behavior. In the code, we use a state variable to set the `disabled` property of the Window button based on the `formRenderProps`.
I hope that was helpful, please let me know if you need more assistance.
Regards,
Ina
Progress Telerik
Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!
Thank you for the feedback.
Unfortunately, the example provided does not seem to work properly. The submit button is out of the form and the handleSubmit function is not called when it is clicked.
Regards,
Tomek