RadMenu 性能问题

发布于 2024-10-08 06:17:29 字数 622 浏览 0 评论 0原文

我有一个页面同时使用 RadMenu 和 RadGrid。 RadGrid 用于客户端模式。这意味着新记录的加载、保存、编辑和创建都是通过ajax 完成的。网格似乎工作正常,但一段时间后,菜单下拉菜单似乎会变慢,并且在使用更多后整个页面会冻结。我不确定是这个组合导致了这种效果,还是其中一个控件造成了这种效果,因为大量的 js 被用来自动化菜单下拉菜单和 ajax 调用。这是重现错误的顺序。

菜单控件位于单独 iframe 的上方,网格位于单独 iframe 的下方。这使得场景更加奇特,因为不同的 js 文件加载在两个 iframe 中,并且两者之间没有交互。

突然冻结的原因可能是什么,也许是内存泄漏?更好的是,当发生大量 ajax 交互并且在回调返回之前触发其他事件时,这可能是一个普遍问题吗?

在视频中可以看到,当网格页面加载时,一切看起来都很好,但是在触发一些事件并执行一些操作后,菜单开始花费大量时间来加载。它达到了需要很长时间才能显示下拉菜单的程度,最终整个浏览器选项卡都冻结了。

我已经上传了效果视频,链接如下: http://megaswf.com/simple_serve/87153/

I have a page that has a RadMenu and a RadGrid used together. The RadGrid is used in client-side mode. This means that the loading, saving, editing and creation of new records is done via ajax. The grid seems to work fine but after sometime it appears that The menu dropdowns tend to be slower and after more use the entire page freezes. I am not sure whether it is this combo that causes this effect or either of the controls since a lot of js is being used to automate the menu dropdown and the ajax calls to the. This is the order in which the error is reproduced.

The menu control is located up above in a separate iframe and the grid is below in a separate iframe. This makes the scenario more peculiar since different js files are loaded in two iframes and there is no interaction between the two.

What could be the cause of the sudden freezing, a memory leak perhaps? Better still could it be a general problem when a lot of ajax interactions occur and other events are fired before the callbacks return?

On the video once can see that when the grid page loads everything seems fine, but after firing some events and performing some actions, the menu starts taking a lot of time to load. It reaches a point that it takes such a long time for the drop downs to display and eventually the entire browser tab freezes.

I have uploaded a video of the effects and here is the link:
http://megaswf.com/simple_serve/87153/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

安静 2024-10-15 06:17:30

“当发生大量 ajax 交互并且在回调返回之前触发其他事件时,这可能是一个普遍问题吗?”
- 这就是你的大部分问题。 Telerik的JavaScript是拼凑在一起的,只需查看源代码并检查页面上有多少脚本,以及inlineJS。联系 Telerik 不会有什么坏处,但我怀疑这会有帮助。如果您有基于浮动的布局,当您进入编辑 Telerik 时,这些工具将不起作用,因为它们依赖于绝对定位。我必须找到自己的解决方案。祝你好运。

"Better still could it be a general problem when a lot of ajax interactions occur and other events are fired before the callbacks return?"
- that's most of your problem. Telerik's JavaScript is thrown together, just view source and check out how many scripts are on the page, as well as the inlineJS. Contacting Telerik couldn't hurt, but I doubt it'll help. If you have a float based layout, when you go into edit Telerik, the tools don't work because they're relying on absolute positioning. I had to find my own solution. Good luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文