Fork me on GitHub

MvcAjaxOptions Class

Represents option settings for running Ajax scripts for MvcPager, this class inherits from AjaxOptions.

Public properties:
NameDescriptionDefault value
AllowCacheGets or sets a value indicating whether client cache is allowed.true
ConfirmGets or sets the message to display in a confirmation window before a request is submitted.null
DataFormIdGets or sets the ID of the form element that values of fields should be passed to server by MvcPager every time page changed.null
EnableHistorySupportGets or sets a value indicating browser history support is enabled by adding hash(#) to url.true
EnablePartialLoadingGets or sets a value indicating whether partial page loading is enabled.false
HttpMethodGets or sets the HTTP request method ("Get" or "Post").Get
InsertionModeGets or sets the mode that specifies how to insert the response into the target DOM element.Replace
LoadingElementDurationGets or sets a value, in milliseconds, that controls the duration of the animation when showing or hiding the loading element.0
LoadingElementIdGets or sets the id attribute of an HTML element that is displayed while the Ajax function is loading.null
OnBeginGets or sets the name of the JavaScript function to call immediately before the page is updated.null
OnCompleteGets or sets the JavaScript function to call when response data has been instantiated but before the page is updated.null
OnFailureGets or sets the JavaScript function to call if the page update fails.null
OnSuccessGets or sets the JavaScript function to call after the page is successfully updated.null
UpdateTargetIdGets or sets the ID of the DOM element to update by using the response from the server.null
UrlGets or sets the URL to make the request to.null
Note: Properties in color are required and must be set, properties in this color have no effects for MvcPager.