我使用jqGrid,我想将一名JQuery DayPicker纳入其中。 直到我增加<>how:纽伦/斯特隆>。 因此,ed子再工作。 我真的想要把这辆小卡车登在一顿点,因为日期是我行的第1个囚室,因此我使用线上ed,这样每排一个显示日期pi客:-。 如果我使用同一日期旁边的cker车选择,它就会发挥作用。
请帮助
function loadGrid() {
var getUrl = Transactions.aspx/GridData/?fundID= + $( #fundID ).val();
var lastSel = "";
jQuery("#list").jqGrid({
url: getUrl,
editurl: Transactions.aspx/Edit/ ,
datatype: json ,
mtype: GET ,
colNames: [ Date , Invested , Nb Shares , Price ],
colModel: [
{ name: Date , index: Date , width: 120, align: left , editable: true,
editoptions: {
size: 10, maxlengh: 10,
dataInit: function(element) {
$(element).datepicker({ dateFormat: dd/mm/yy , constrainInput: false, showOn: button , buttonText: ... });
}
}
},
{ name: Invested , index: Invested , width: 100, align: right , editable: true, edittype: text },
{ name: NbShares , index: NbShares , width: 110, align: right , editable: true, edittype: text },
{ name: UnitValue , index: UnitValue , width: 150, align: right , editable: true, edittype: text }],
onSelectRow: function(id) {
if (id && id !== lastSel) {
jQuery( #list ).restoreRow(lastSel);
jQuery( #list ).editRow(id, true);
lastSel = id;
}
},
pager: jQuery( #navbar ),
viewrecords: true,
height: auto ,
caption: Transactions detail
}).navGrid( #navbar , { edit: false, add: true, del: true });
jQuery("input[type=text]").css("width", "2em");
jQuery("#navbar table").css("margin", "0");
}