Bootgrid的搜索不起作用 [英] Bootgrid's search is not working
问题描述
我正在尝试运行Bootgrid的搜索,但是当我在搜索字段中输入数据时,仍保持加载状态.由于数据显示正确,因此来自服务器端的web方法返回自动序列化的DTO的列表.我到处都看过文档,示例,但看不到哪个可能是问题,我应该怎么做才能使搜索工作?谢谢
I'm trying to run the search of Bootgrid but when I enter data into the search field stays loading. The webmethod from server side return a list of DTO's that are automatically serialized , since the data is displayed correctly. I 've looked everywhere , documentation , examples and I cannot get to see which might be the problem, what should I do to make the search work? Thank you
这是我返回清单的DTO.
This is the DTO which i return a list of.
Namespace Data.DTO
Public Class CarSearchDTO
Private _id As Integer
Private _brand As String
Private _model As String
Public Property id As Integer
Get
Return _id
End Get
Set(value As Integer)
_id = value
End Set
End Property
Public Property brand As String
Get
Return _brand
End Get
Set(value As String)
_brand = value
End Set
End Property
Public Property model As String
Get
Return _model
End Get
Set(value As String)
_model = value
End Set
End Property
End Class
结束命名空间
推荐答案
问题是我有一个command列,但我没有将其列为不可搜索,因此当在该列中进行搜索时会出现错误.只需在该列中添加data-searchable ="false"即可.
The problem was i have a commands column which i dont put it as not searchable, so it give an error when the search look for in that column. Just add data-searchable="false" in that column and it work fine.
这篇关于Bootgrid的搜索不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!