THEMES
THEME SETTINGS

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

<<<June 2017
SunMonTueWedThuFriSat
2228293031123
2345678910
2411121314151617
2518192021222324
26252627282930 
27       
July 2017
SunMonTueWedThuFriSat
26      1
272345678
289101112131415
2916171819202122
3023242526272829
313031     
August 2017>>>
SunMonTueWedThuFriSat
31  12345
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
48262728293012
493456789
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.3
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.