Can you please show me some example, I’m tring to make working but without a success 🙁
I have additional button
|
1 2 3 4 5 6 7 8 9 10 11 |
jQuery("#page").jqGrid('navButtonAdd','#ppage',{ id:'datepicker', caption:'Date', title: 'Load data', buttonicon:'ui-icon-calendar', onClickButton:function() { ..... } }); |
datepicker outside of jqGrid it’s working, but not in jqGrid..
|
1 2 3 4 5 6 |
$("#datepicker").datepicker({ dateFormat: "yy-mm-dd", onSelect: function () { selectedDate = $.datepicker.formatDate("yy-mm-dd", $(this).datepicker('getDate')); } }).datepicker("setDate", "0"); |
Ok I solved a problem with variables etc..
But now I have problem with datepicker..
I would like to add new button vi function ‘jqGrid(‘navButtonAdd’…’, and display calendar, select date and assgine selected date to varaibale. It’s possible do like this?
Hello
How to send this to url parameter?
Could you please help me with code? Where to add this? And how to sent var ‘date’ to url parameter?
Below I have is my code.
One thing I don’t need range of dates, I want have availability to choose only one date at time.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
<script type="text/javascript"> $(function () { jQuery("#page").jqGrid({ url: "get_data.php?today=2015-01-07", datatype: "json", mtype: "GET", colNames: ["A", "B", "C", "D", "E", "F", "G", "H", "I"], colModel: [ { name: "a", index:'a', width: 130, sorttype:'string' }, { name: "b", index:'b', width: 80, sorttype:'string' }, { name: "c", index:'c', width: 80, sorttype:'string' }, { name: "d", index:'d', width: 80, sorttype:'integer' }, { name: "e", index:'e', width: 80, sorttype:'string' }, { name: "f", index:'f', width: 70, sorttype:'string' }, { name: "g", index:'g', width: 200, sorttype:'string' }, { name: "h", index:'h', width: 250, sorttype:'string' }, { name: "i", index:'i', width: 70, sorttype:'string' } ], pager: '#ppage', height: 500, width: 1450, rowNum: 100, rownumWidth: 40, rownumbers: true, rowList : [20,50,100,200,500], sortname: 'ID', sortorder: "asc", viewrecords: true, loadonce: true, gridview: true, autoencode: true, jsonReader: { repeatitems : false }, viewsortcols: true, caption: "XXX" }); jQuery("#page").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false}); jQuery("#page").jqGrid('navGrid','#ppage', {edit:false,add:false,del:false}, {}, {}, {}, {multipleSearch:true, multipleGroup:true} ); }); }); </script> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top