Forum



14:29

05/03/2012

Hi everybody,
before filing a Bug I want to be sure I'm not doing something wrong. I found this:
When using the "Enter / Esc" Key functionality, the active/inactive states of the inline nav buttons is not updated correctly. As a plus, when using the grids "ondblClickRow" event for entering inline - editing, the buttons states are not updated too. To clearify this, here some screens made from a slightly modified grid example from the jqgrid examples page:
datatype: "local",
height: 250,
pager:"pgGrid",
ondblClickRow:function(rowid) {
$('#tblGrid').jqGrid('editRow',rowid,true);
},
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[ {name:'id',index:'id', width:60, sorttype:"int",editable:true},
{name:'invdate',index:'invdate', width:90, sorttype:"date",editable:true},
{name:'name',index:'name', width:100,editable:true},
{name:'amount',index:'amount', width:80, align:"right",sorttype:"float",editable:true},
{name:'tax',index:'tax', width:80, align:"right",sorttype:"float",editable:true},
{name:'total',index:'total', width:80,align:"right",sorttype:"float",editable:true},
{name:'note',index:'note', width:150, sortable:false,editable:true}
],
caption: "Manipulating Array Data"
});
$("#tblGrid").jqGrid('navGrid',"#pgGrid",{edit:false,add:false,del:true});
$("#tblGrid").jqGrid('inlineNav',"#pgGrid",{addParams:{position:'last',addRowParams:{keys:true}},editParams:{keys:true}});
1) The source Grid:
[Image Can Not Be Found]
2) The grid after doubleClicking the first line; this is in edit mode, but the inline buttons aren't (save + abort deactivated)
[Image Can Not Be Found]
3) The grid after clicking the "edit" button with first line selected; the row and the buttons are both in edit - mode (save + abort activated, edit + add deactivated)
[Image Can Not Be Found]
4) The grid after pressing "Esc" or "Enter"; the row left edit mode, the inline buttons didn't: edit + add are deativated, save + abort activated)
[Image Can Not Be Found]
Am I doing something wrong or can anybody confirm this as a bug?
Thx in advance!
Snoopy
Most Users Ever Online: 715
Currently Online:
46 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66