Devexpress ASPxCallback 客户端 e.Result 未定义
我调用 cb.PerformCallback(); 它看起来工作正常,但我无法获得 e.result
。 它警告“未定义”。
我可以看到“开始”和“结束”警报。
ASPxCallback cb = new ASPxCallback();
cb.ID = cb.ClientInstanceName = "cb";
cb.ClientSideEvents.BeginCallback = @"function (s,e) { alert('started'); alert(e.result); }";
cb.ClientSideEvents.EndCallback = @"function (s,e) { alert('ended'); alert(e.result); }";
我怎样才能得到电子结果?
I call cb.PerformCallback();
it looks working correctly but I can not get the e.result
.
it alerts "undefined".
I can both see "started" and "ended" alerts.
ASPxCallback cb = new ASPxCallback();
cb.ID = cb.ClientInstanceName = "cb";
cb.ClientSideEvents.BeginCallback = @"function (s,e) { alert('started'); alert(e.result); }";
cb.ClientSideEvents.EndCallback = @"function (s,e) { alert('ended'); alert(e.result); }";
how can I get e.result?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
改为处理 ASPxClientCallback.CallbackComplete 事件并使用 e.result 属性(注意字符大小写):
http://demos.devexpress.com/ASPxperienceDemos/Callback/Example.aspx
Handle the ASPxClientCallback.CallbackComplete event instead and use the e.result property (take attention to the character case):
http://demos.devexpress.com/ASPxperienceDemos/Callback/Example.aspx
看一下:
http://documentation.devexpress.com/#AspNet/DevExpressWebASPxCallbackScriptsASPxClientCallback_CallbackCompletetopic
<一href="http://documentation.devexpress.com/#AspNet/DevExpressWebASPxClassesScriptsASPxClientBeginCallbackEventArgsMembersTopicAll" rel="nofollow">http://documentation.devexpress.com/#AspNet/DevExpressWebASPxClassesScriptsASPxClientBeginCallbackEventArgsMembersTopicAll
http://documentation.devexpress.com/#AspNet/DevExpressWebASPxClassesScriptsASPxClientEndCallbackEventArgsMembersTopicAll
Take a look at this:
http://documentation.devexpress.com/#AspNet/DevExpressWebASPxCallbackScriptsASPxClientCallback_CallbackCompletetopic
http://documentation.devexpress.com/#AspNet/DevExpressWebASPxClassesScriptsASPxClientBeginCallbackEventArgsMembersTopicAll
http://documentation.devexpress.com/#AspNet/DevExpressWebASPxClassesScriptsASPxClientEndCallbackEventArgsMembersTopicAll