Forum
14:50
Moderators
30/10/2007
Hello,
Â
One possible reason for this is that you have eqial id in grid and subgrid - i.e you have id = 1 in grid and id = 1 in subgrid.
To resolve the problem you will need to use idPrefix in subgrid. See docs.
Â
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:29
06/08/2014
Thank you for your answer!
But I think the problem isn't in it, I'm already have idprefix. here's my grid definitions (sorry for messy).
$("#EditTimeGrid").jqGrid({
datatype: "local",
loadonce: true,
multiselect: false,
data: mainData,
scrollrows: true,
height: "100%",
colNames: ['@Resource.ID', '', 'MainID', 'FullDate', '@Resource.Date', '@Resource.Day', 'DayNum', '@Resource.Project_Category',
'@Resource.Start', '@Resource.End', '@Resource.Lunch', '@Resource.BillHours', '@Resource.NonBillHours', '@Resource.TotalHours',
'@Resource.Notes', '', 'start', 'end', '', ''],
...
rowattr: function (rd) {
return { "class": "boldRow" };
},
rowNum: 10,
//rowList: [5, 10, 20],
//gridview: true,
cellEdit: editMode,
cellsubmit: 'clientArray',
ignoreCase: true,
rownumbers: true,
// sortname: 'DayAsNumber',
// sortorder: "asc",
viewrecords: true,
autoencode: true,
footerrow: true
, idPrefix: "s_"
, subGrid: true
Â
and for subgrid
$subgrid.jqGrid({
datatype: "local"
, scrollrows: true
, multiselect: false
, data: sd
...
, height: "100%"
, rowNum: 10
, autoencode: true
//gridview: true,
, cellEdit: editMode
, cellsubmit: 'clientArray'
, idPrefix: rowId + "_"
Â
I've made some investigation and found a function in the jquery.jqgrid.src.js file
(line 10282)
.keydown(function (e) {
...
switch (kdir) {
case 38:
if ($t.p.iRow - 1 > 0) {
scrollGrid($t.p.iRow-1,$t.p.iCol,'vu');
$($t).jqGrid("editCell",$t.p.iRow-1,$t.p.iCol,false);
}
break;
Â
If we press right or left arrow, we found next visible column, but if we pressed up or down key we just go to next or previous row, even if it's a subgrid's invisible row. Â Maybe I'm wrong with my opinions.
12:43
Moderators
30/10/2007
Hello,
Â
Thanks for the investigation.
You are right - we should made checking in order to have movement only in the current grid (and not in the subgrid or row that is custom created in grid)
Â
I will see if I can fix this for the next release - if so I will let you know.
Â
Kind Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
51 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