【问题标题】:Bootgrid's search is not workingBootgrid 的搜索不起作用
【发布时间】:2015-10-16 00:19:48
【问题描述】:

我正在尝试运行 Bootgrid 的搜索,但是当我在搜索字段中输入数据时,仍处于加载状态。服务器端的 web 方法返回一个自动序列化的 DTO 列表,因为数据显示正确。我到处查看,文档,示例,但我无法查看可能是哪个问题,我应该怎么做才能使搜索工作?谢谢

This is the asp.net code

这是我返回列表的 DTO。

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

结束命名空间

【问题讨论】:

    标签: jquery asp.net ajax twitter-bootstrap jquery-bootgrid


    【解决方案1】:

    问题是我有一个命令列,我没有将其设置为不可搜索,因此在该列中搜索时会出错。只需在该列中添加 data-searchable="false" 即可正常工作。

    【讨论】:

      猜你喜欢
      • 2017-08-10
      • 2018-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-25
      • 1970-01-01
      • 2015-02-10
      相关资源
      最近更新 更多