asp.net-mvc - ASP.NET MVC:我的 webgrid 的排序列执行错误的操作
问题描述
我被困在这个问题上:我有一个 ajax 按钮可以在页面中添加一个 gridview,到目前为止它可以工作,但是当我想对其中一个列进行排序时,它会将我发送到一个页面,其中包含我的 gridview 的结果
@using (Ajax.BeginForm("GetDataGridDoc", new AjaxOptions
{
HttpMethod = "GET",
InsertionMode = InsertionMode.Replace,
UpdateTargetId = "ResultDataGrid",
}))
{
.........
<div id="ResultDataGrid">
@if (Model.DatepickerBegin != null && Model.DatepickerTo != null)
{
{Html.RenderAction("GetDataGridDoc");}
}
</div>
}
在我的行动中:
IEnumerable<Document> test = _resultRecherche.ListeDesDocuments.ToList();
return PartialView("_ResultatRecherche", test);
你有想法吗 ?
谢谢
解决方案
好的,我发现,这是我的 webgrid 中的布丁 Ajax 参数...
推荐阅读
- tkinter - Python3(Tkinter)突出显示焦点上的文本
- javascript - 将属性添加到其他文件中的原型函数
- java - 将 ImageView 准确地保存在 XML 位置
- openssl - x509 ocspid 选项生成的密钥哈希与证书的公钥之间的区别
- wpf - WPF Datagrid 在 MVVM 架构中获取单元格值
- php - 无法访问 xampp-vm 上的 laravel-websockets 仪表板
- ubuntu - 尝试在 ubuntu 中安装精益
- python - Python:AttributeError:“WebElement”对象没有属性“send_Keys”
- ubuntu - 如何为现有/新用户编写 LDAP 策略
- python - 使用多处理填充来自多个数据加载器的对象的队列