THEMES
THEME SETTINGS

Multi-Use Site Extensions - Support for AJAX Requests jQuery Callbacks

<<<February 2017
SunMonTueWedThuFriSat
052930311234
06567891011
0712131415161718
0819202122232425
09262728    
10       
March 2017
SunMonTueWedThuFriSat
09   1234
10567891011
1112131415161718
1219202122232425
13262728293031 
14       
April 2017>>>
SunMonTueWedThuFriSat
13      1
142345678
159101112131415
1616171819202122
1723242526272829
1830      
May 2017
SunMonTueWedThuFriSat
18 123456
1978910111213
2014151617181920
2121222324252627
2228293031   
23       
June 2017
SunMonTueWedThuFriSat
22    123
2345678910
2411121314151617
2518192021222324
26252627282930 
27       
July 2017
SunMonTueWedThuFriSat
26      1
272345678
289101112131415
2916171819202122
3023242526272829
31303112345
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.

Version: v2016 vol 2.4
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.