devexpress onsuccess parameter

余生长醉 提交于 2020-01-07 08:29:05

问题


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.

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?

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


回答1:


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.

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

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



来源:https://stackoverflow.com/questions/28633623/devexpress-onsuccess-parameter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!