与 RadGrid 一起使用时,RadEditor javascript 错误 (this._contentHiddenTextarea.form)

发布于 2024-10-07 14:25:23 字数 940 浏览 0 评论 0原文

我遇到了 js 错误,但我还没有确定原因。

; <标签>

我在 uxTabA 中放置了 2 个 RadEditor,在 uxTabB 中放置了一些 aspx 控件,然后将 RadGrid(内部使用 AJAX 内置功能的经典 RadGrid)- 名为 uxGridSource 放在

我正在使用的 uxTabC 中ImageButton - uxGridSource 中 CommandItem 上名为 uxCmdSave 的。 单击 uxCmdSave 按钮后,一切正常,但我收到客户端错误

行:310715465 错误:“this._contentHiddenTextarea.form”为 null 或不是对象

,之后我无法导航到页面上的任何选项卡(如上所述,我使用了 3 个选项卡)。 我认为这个错误是从 RadEditor 引发的,但我还不知道解决方案是什么。

但是,如果页面通过页面上的任何按钮(而不是 RadGrid 上)完全回发,则不会发生此错误。

请帮我。

I'm facing the js error, and i didn't identify the reason yet.

<telerik:RadTabStrip MultiPageID="uxMultiPage" ID="uxTabStrip" runat="server" CssClass="TabStrip">
<Tabs>
<telerik:RadTab meta:ResourceKey="uxTabA" PageViewID="uxTabA">
</telerik:RadTab>
<telerik:RadTab meta:ResourceKey="uxTabB" PageViewID="uxTabB">
</telerik:RadTab>
<telerik:RadTab meta:ResourceKey="uxTabC" PageViewID="uxTabC">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>

I put 2 RadEditors in uxTabA, some aspx controls to uxTabB, and i put the RadGrid (Classic RadGrid with using AJAX built-in feature inside)- named uxGridSource in uxTabC

I'm using the ImageButton - named uxCmdSave on the CommandItem in uxGridSource .
After clicking the button uxCmdSave, everything is OK, but i'm getting the client error

Line: 310715465
Error: 'this._contentHiddenTextarea.form' is null or not an object

after that, i cannot navigate to any tab (i'm using 3 tabs as described above) on my page.
I think that this error is thrown from RadEditor, but i do not know what the solution is yet.

However, if the page is PostBack fully by any button on the page (not on the RadGrid), this error does not occurs.

Please help me.

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

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

发布评论

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

评论(3

胡渣熟男 2024-10-14 14:25:23

当经典 RadGrid 和 RadEditor 一起使用 ajax 功能时,可能会出现这种情况。但我还不知道解决方案是什么。

任何帮助!

Maybe this occurs when using ajax feature in classic RadGrid, and RadEditor together. But i donnot know what the solution is yet.

Any help!

沉鱼一梦 2024-10-14 14:25:23

您不应混合使用旧版 Telerik ASP.NET(经典)套件和当前 ASP.NET AJAX 套件中的控件。您应该将经典的 RadGrid 控件切换为 ASP.NET AJAX 控件,并将其包装在 RadAjaxPanel 中,以启用经典控件中内置的 Ajax 功能。

You should not mix controls from the old Telerik ASP.NET (classic) suite and the current ASP.NET AJAX one. You should switch the classic RadGrid control to the ASP.NET AJAX one and wrap it in a RadAjaxPanel to enable the Ajax functionality that was built in the classic control.

蓝梦月影 2024-10-14 14:25:23

我会尝试首先在应用程序中使用相同版本的控件。将 ASP.NET Classic 控件与 ASP.NET AJAX 控件混合起来可能会很棘手,而且很容易发生 JS 错误。我相信从一种到另一种的过渡应该非常简单,但是 这里是有关该开关的文档文章(专门针对 RadGrid)。

I would try to incorporate using the same version of the controls in the application first. Mixing ASP.NET Classic controls with the ASP.NET AJAX controls can end up being tricky, and JS errors could very easily happen. I believe making the transition from one to the other should be pretty straight forward, but here is a documentation article regarding the switch (specifically for the RadGrid).

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