Problem with KendoReact Form component in Dialog/Windows component

3 Answers 37 Views
Dialog Form Window
Tomasz
Top achievements
Rank 1
Tomasz asked on 28 Feb 2025, 04:31 PM | edited on 28 Feb 2025, 04:54 PM
Hello,
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

Sort by
0
Accepted
Ina
Telerik team
answered on 06 Mar 2025, 11:07 AM

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!

Tomasz
Top achievements
Rank 1
commented on 11 Mar 2025, 10:46 AM

Hi, Ina,
Thanks for your help. The solution provided works correctly.

Regards,
Tomek

Tomasz
Top achievements
Rank 1
commented on 12 Mar 2025, 12:14 PM

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

Ina
Telerik team
commented on 13 Mar 2025, 10:51 AM

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!

Tomasz
Top achievements
Rank 1
commented on 13 Mar 2025, 12:33 PM

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

0
Ina
Telerik team
answered on 17 Mar 2025, 11:39 AM | edited on 17 Mar 2025, 11:46 AM

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!

Tomasz
Top achievements
Rank 1
commented on 19 Mar 2025, 03:05 PM

Hello Ina, I think I found a solution. I've added it to github.

Regards,
Tomek

Ina
Telerik team
commented on 20 Mar 2025, 07:49 AM

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.

-1
Ina
Telerik team
answered on 04 Mar 2025, 12:58 PM

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!

Tomasz
Top achievements
Rank 1
commented on 04 Mar 2025, 03:38 PM

Hello, Ina
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
Tags
Dialog Form Window
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Ina
Telerik team
Share this question
or