如何在jqGrid搜索工具栏中获取datepicker?

ran*_*alo 7 jquery jquery-ui datepicker jqgrid

我想在搜索文本字段中使用datepicker,最后也在jqgrid的编辑字段中.

有什么办法吗?

有没有人用这种组合?使用jqGrid的Datepicker?

Ish*_*mad 10

您将在字段定义中执行以下操作,

colModel: [{ name: 'Start', index: 'Start', searchoptions: { sopt: ['eq', 'ne'], 
dataInit: function (elem) { $(elem).datepicker({ showButtonPanel: true }) } } },
Run Code Online (Sandbox Code Playgroud)


ran*_*alo 5

我找到了方法:

它隐藏在文档的深处:

http://www.trirand.com/jqgridwiki/doku.php?id=wiki:search_config