本文介绍了devex preSS的onSuccess参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经提上了他们使用devex preSS工作的项目。对于我的任务,我试图运行的JavaScript函数当Ajax调用是成功的,但是我不知道放在哪里的onSuccess参数。

I've been put on a project for work where they use devexpress. For my task I'm trying to run a javascript function when an ajax call is successful, however I don't know where to put the onsuccess parameter.

我知道如何做到这一点的ajax.beginform但devex preSS那里有一堆settings.stuff的网格视图。任何想法,这哪里去?

I know how to do this for ajax.beginform but for devexpress theres a grid view with a bunch of settings.stuff. Any idea where this goes?

我看到一个settings.CallBackRouteValues​​,这是该在哪里去?

I see a settings.CallBackRouteValues, is this where that goes?

推荐答案

如果你需要处理一个客户端上时,DevEx preSS控制完成它们的回调,处理<一href="https://documentation.devex$p$pss.com/#AspNet/DevEx$p$pssWebScriptsASPxClientGlobalEvents_EndCallbacktopic"相对=nofollow> ASPxClientGlobalEvents.EndCallback 事件。要访问此情况下, ASPxGlobalEvents 组件添加到窗体并使用其<一个href="https://documentation.devex$p$pss.com/#AspNet/DevEx$p$pssWebASPxGlobalEvents_ClientSideEventstopic"相对=nofollow> ClientSideEvents 的。

If you need to handle on a client when DevExpress controls finish their callbacks, handle the ASPxClientGlobalEvents.EndCallback event. To access this event, add the ASPxGlobalEvents component onto a form and use its ClientSideEvents.

如果你使用MVC,还有就是<一个href="https://documentation.devex$p$pss.com/#AspNet/clsDevEx$p$pssWebMVCScriptsMVCxClientGlobalEventstopic"相对=nofollow> MVCxClientGlobalEvents 的类,它是ASPxClientGlobalEvents的模拟

If you use MVC, there is the MVCxClientGlobalEvents class which is an analog of ASPxClientGlobalEvents.

在CallBackRouteValues​​属性指定哪些控制器的操作方法回调将被发送。

The CallBackRouteValues property specifies to what controller action method a callback will be sent.

这篇关于devex preSS的onSuccess参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 07:14