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

Position Kendo react window to bottom right of window on minimize.

3 Answers 467 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tushaar
Top achievements
Rank 1
Veteran
Tushaar asked on 21 Jun 2020, 11:16 AM

Hello community,
I had a use case in which i want to shift the Kendo React window to bottom right of window on minimizing by using the button on toolbar(not by a separate button). And by default, it should be on top right.

Initially, window should be in top left as shown in first
figure , on minimizing, it should go to bottom right as shown in second
figure.

Can somebody help me with this issue?
Any help would be highly appreciated.

3 Answers, 1 is accepted

Sort by
0
Tushaar
Top achievements
Rank 1
Veteran
answered on 23 Jun 2020, 05:35 AM
Can someone look into this issue?
0
Stefan
Telerik team
answered on 23 Jun 2020, 08:27 AM

Hello, Tushaar,

This can be done using the controlled mode of the Window to control its position and dimensions:

https://www.telerik.com/kendo-react-ui/components/dialogs/window/controlled-mode/

Then we have to use the onStageChange event and when it is minimized to set the Window position on the right bottom corner:

https://www.telerik.com/kendo-react-ui/components/dialogs/api/WindowProps/#toc-onstagechange

I made an example showcasing this:

https://stackblitz.com/edit/react-dswn64?file=app/main.jsx

I hope this is helpful.

Regards,
Stefan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Tushaar
Top achievements
Rank 1
Veteran
answered on 23 Jun 2020, 06:18 PM
This was exactly what i was looking for.
Thanks for the support Stefan.
Great Telerik Community :)
Tags
General Discussions
Asked by
Tushaar
Top achievements
Rank 1
Veteran
Answers by
Tushaar
Top achievements
Rank 1
Veteran
Stefan
Telerik team
Share this question
or