放置列表与搜索数据表一致

时间:2017-10-03 13:37:40

标签: javascript twitter-bootstrap-3

如何将下拉列表与搜索放在同一行? 现在看起来如下图所示。 enter image description here

数据表的DOM属性定义如下:{ "summary": "Bad Request", "details": "Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'ParticipantContract' because the type requires a JSON object (e.g. {\"name\":\"value\"}) to deserialize correctly.\r\nTo fix this error either change the JSON to a JSON object (e.g. {\"name\":\"value\"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.\r\nPath '', line 1, position 1." }

对于列表,我使用了bootstrap-multiselect

1 个答案:

答案 0 :(得分:0)

我不知道你是否需要特定的款式,但我推荐这个:

https://datatables.net/download/index

你只需要使用JQuery,它为Bootstrap提供样式,你可以用自己的风格覆盖它