简体   繁体   English

Telerik RadWindow在ajax和__DoPostBack后不触发ClientCallBackFunction

[英]Telerik RadWindow does not fire ClientCallBackFunction after a ajax an __DoPostBack

HI, 嗨,

I have a Telerik radwindow that allows our users to upload files. 我有一个Telerik radwindow,允许我们的用户上传文件。 When the user first opens the radwindow and sees the upload fields, they can happily select a file and upload it. 当用户首次打开radwindow并看到上传字段时,他们可以很高兴地选择一个文件并上传。 The window then returns the id of the uploaded file back to the parent page via the ClientCallBackFunction. 然后,该窗口通过ClientCallBackFunction将上传文件的ID返回到父页面。 This function then passes in the ID to a javascript function that calls __DoPostback so that we can populate the list of uploaded files. 然后,此函数将ID传递给调用__DoPostback的javascript函数,以便我们可以填充已上传文件的列表。 First time around it works a treat. 第一次围绕它的工作。

However all subsequent times it fails to call ClientCallBackFunction unless i refresh the entire page. 但是,除非随后刷新整个页面,否则所有后续时间都无法调用ClientCallBackFunction。 I also note that any other control on the parent page to uses an ajax postback also stops the ClientCallBackFunction begin called, even on the first time. 我还注意到,父页面上使用ajax回发的任何其他控件也将停止ClientCallBackFunction开始调用,即使是第一次也是如此。

any ideas? 有任何想法吗?

Thanks 谢谢

Richard 理查德

ClientCallBackFunction was deprecated and removed from RadWindow a long time ago, so I am not sure what is the exact version that you are using. 很久以前不推荐使用ClientCallBackFunction并将其从RadWindow中删除,因此我不确定您使用的确切版本是什么。 Have you set DestroyOnClose to true? 您是否将DestroyOnClose设置为true? If so, try setting it to false and see how your app will behave. 如果是这样,请尝试将其设置为false并查看您的应用程序的行为。 If this doesn't help, open a support ticket from your Telerik account and send a sample project where the problem could be reproduced so I could check it more closely. 如果这样做没有帮助,请从您的Telerik帐户中获取支持通知单,然后将示例项目发送到可以重现该问题的示例项目中,以便我们进行更仔细的检查。

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM