$("#search").click(function(){ var begintime = $("#beginDate").datetimebox("getValue"); var endtime = $("#endDate").datetimebox("getValue"); grid.datagrid('reload',{optime:'[between]' + begintime + "[and]" + endtime}); });