Change Theme Settings
Change Theme Settings
Themes
 
Metropolis
Moderno
iOS
Material
Material Compact
Office 365
Mulberry
Show All Themes
v
...v

jQuery Callbacks

<<<January 2018>>>
SunMonTueWedThuFriSat
0131123456
0278910111213
0314151617181920
0421222324252627
0528293031123
0645678910
TodayClear


DevExpress MVC extensions fully support jQuery AJAX callbacks. This demo shows how to load partial views containing DevExpress MVC extensions within a jQuery ajax callback.

The Menu extension contains three items. When the end-user selects an item from the menu, the OnSelectingMenuItem function is called. This function contains an ajax request, which causes the <div> container to be updated with the rendered DevExpress MVC extension from the partial view.

Ajax requiest settings:

  • data - defines the data to be sent on the server. In this demo, the selected menu item name is sent to the server.
  • beforeSend - defines a pre-request callback function. In this demo, the pre-request callback function invokes loading panel.
  • success - defines a function to be called if the request succeeds. In this demo, the called function hides the loading panel and puts the rendered extension code into the required container.

You can find more available settings here: jQuery.ajax() – jQuery API.