How to reset the scroll position in a Kendo Dialog (jquery)

1 Answer 45 Views
Dialog
Kent
Top achievements
Rank 1
Kent asked on 01 Feb 2024, 08:54 PM

I am wanting to re-open a previously opened kendo dialog. The dialog has scrolling content so when it re-opens I want to be at the top of the dialog again.

How can I do this? Or will I need to destroy and re-create?

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 06 Feb 2024, 02:03 PM

Hello, Kent,

You can scroll the content of the Dialog dynamically using the line below:

$(".k-dialog-content").scrollTop(0)

If that wouldn't apply for your case, kindly provide a small Dojo example where I can observe the scenario.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Kent
Top achievements
Rank 1
commented on 06 Feb 2024, 06:18 PM

Thanks.  That works.
Tags
Dialog
Asked by
Kent
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or