aspnetmvc-devexpress-dot-web-dot-mvc-dot-querybuilderextension-dot-getsavecallbackresult-x28-system-dot-string-x29.md
Returns the result of a callback sent to the server for saving a query.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public static QueryBuilderSaveCallbackResult GetSaveCallbackResult(
string name
)
Public Shared Function GetSaveCallbackResult(
name As String
) As QueryBuilderSaveCallbackResult
| Name | Type | Description |
|---|---|---|
| name | String |
A string that specified the Query Builder name.
|
| Type | Description |
|---|---|
| QueryBuilderSaveCallbackResult |
A QueryBuilderSaveCallbackResult object.
|
Use the GetSaveCallbackResult method in a controller action specified by the QueryBuilderSettings.SaveCallbackRouteValues property to obtain the callback result.
See the Saving Queries topic for more information on using this method.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetSaveCallbackResult(String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
public ActionResult Save() {
var result = QueryBuilderExtension.GetSaveCallbackResult("QueryBuilder");
Session["SelectCommand"] = result.SelectStatement;
Public Function Save() As ActionResult
Dim result = QueryBuilderExtension.GetSaveCallbackResult("QueryBuilder")
Session("SelectCommand") = result.SelectStatement
See Also