This example illustrates how to show a custom message after performing CRUD operations:
- Handle a particular Action method on the Controller side and save the related data/message via a custom ViewData key.
- Handle the GridViewSettings.CustomJSProperties event in the GridView's PartialView and check if a custom ViewData key exists. If so, store it as a custom JS Property.
- Handle the client-side ASPxClientGridView.EndCallback event and check if a custom JS Property exists. If so, visualize its value in the required manner and remove it.
Added By: venu koneru at: 4/21/2015 6:52:04 AM
- Handle a particular Action method on the Controller side and save the related data/message via a custom ViewData key.
- Handle the GridViewSettings.CustomJSProperties event in the GridView's PartialView and check if a custom ViewData key exists. If so, store it as a custom JS Property.
- Handle the client-side ASPxClientGridView.EndCallback event and check if a custom JS Property exists. If so, visualize its value in the required manner and remove it.
Question Comments
Added By: venu koneru at: 4/21/2015 6:52:04 AM
@using ShowMessageAfterCallback.Controllers;
Please give us the code for the above controller
Added By: Vladimir (DevExpress Support) at: 4/21/2015 9:44:44 AMHello Venu,
This namespace is implemented in the HomeController.cs file. You can change a currently displayed file to see it. Alternatively, you can download the entire example, run it in our Example Runner and see its code.