Gets an object containing specific information (if any, as name/value pairs) that should be passed as a request parameter from the client to the server side for further processing.
The BeginCallback and ASPxClientGridView.EndCallback events can be used to perform specific client-side actions (for example, to display and hide an explanatory text or picture) while a callback is being processed on the server side.
the GridView extension is bound to a DataSet that is filtered by external editors;
when a callback is performed, the grid’s ASPxClientGridView.BeginCallback event is handled. In the MVC GridView extension, it is possible to transmit client-side values as callback arguments to a Controller’s Action, returning a Partial View;
jQuery asynchronous requests are not able to serialize the Date, and thus the serialization should be performed manually;
a DateTime object is created from a serialized string using the DateTime.ParseExact method;
custom resources (scripts and CSS files) are compressed using the HTTP Handler.
//_Layout.cshtml
<!DOCTYPE htmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>How to bind GridView extension to a Model filtered by a range of dates in MVC 3 (Razor)</title>
@Html.DevExpress().GetStyleSheets(
new StyleSheet { ExtensionSuite = ExtensionSuite.Editors },
new StyleSheet { ExtensionSuite = ExtensionSuite.GridView }
)
<linkhref="DX.ashx?cssfile=~/Content/Site.css"rel="stylesheet"type="text/css" /><scriptsrc="DX.ashx?jsfile=~/Scripts/jquery-3.5.1.min.js"type="text/javascript"></script>
@Html.DevExpress().GetScripts(
new Script { ExtensionSuite = ExtensionSuite.GridView },
new Script { ExtensionSuite = ExtensionSuite.Editors }
)
</head><body>
@RenderBody()
</body></html>