Last Updated: 08 Feb 2022 12:03 by ADMIN
Michael D
Created on: 02 Feb 2022 07:00
Category: Kendo UI for jQuery
Type: Feature Request
Allow Popup's setOptions() method to update collision settings

The popup widget provides a setOptions() method that allows to update the options after initialization (as documented here: https://docs.telerik.com/kendo-ui/api/javascript/ui/popup/methods/setoptions). However, setOptions does not update the collision settings. This can be witnessed in the following DOJO: https://dojo.telerik.com/UbiKumIg.

When reducing the window size until the popup is forced to change its position, it still uses the "fit"-behavior, although setOptions() has been called with "fit".

A quick check in the sources revealed that the widget caches the collision settings internally in a form that is easier to work with than the configuration string. However it is never updated on setOptions().

1 comment
Posted on: 08 Feb 2022 12:03


I am afraid that the setOptions method could not be used for all the properties in every widget. As described in the following link from the documentation - Depending on the widget, some properties may not be changed, and the method's implementation varies for each widget.


Thus, I am changing the type of the thread to Feature Request. This way, the other users in the community could vote for the issue.


If it is suitable for your scenario you could try to destroy and recreate the Popup widget with the new options.

- https://docs.telerik.com/kendo-ui/intro/widget-basics/destroy

Here is a Dojo example where the approach from the article is used for the Popup widget.

I hope this helps.

Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.