THEMES
THEME SETTINGS

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

<<<August 2017
SunMonTueWedThuFriSat
31303112345
326789101112
3313141516171819
3420212223242526
352728293031  
36       
September 2017
SunMonTueWedThuFriSat
35     12
363456789
3710111213141516
3817181920212223
3924252627282930
40       
October 2017>>>
SunMonTueWedThuFriSat
401234567
41891011121314
4215161718192021
4322232425262728
44293031    
45       
November 2017
SunMonTueWedThuFriSat
44   1234
45567891011
4612131415161718
4719202122232425
482627282930  
49       
December 2017
SunMonTueWedThuFriSat
48     12
493456789
5010111213141516
5117181920212223
5224252627282930
0131      
January 2018
SunMonTueWedThuFriSat
01 123456
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.

Version: v2017 vol 1.5
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.