Forum


10:25

25/02/2009

Hi!
I'm already register and in some confused... Don't now how asking...but I'm try...
I have a bottom, after click on it, generates grid and data loaded on it.
Then I want to select row in grid without using mouse, in js code.
I'm tried
var grid = jQuery('#grid_variant');
var ids = grid.getDataIDs();
grid.setSelection(ids[0], true);
...
}
But setSelection() only highlight row and I can't using arrows UP, DOWN, LEFT, RIGHT to move from cell to cell...
The problem is that there no focus on grid.
I'm sure there are solves exists this problem.
Please, help me solve this problem, it's really important for me!
10:40

25/02/2009

Uter said:
I would love to see such a feature - I would need it also.
I want to use Hotkeys to jump to the rows (Example: Hitting CTRL + 1 would set Focus cell 1 [because I'm using cell-editing] in row 1).
Does someone have experience with such a topic ?
Or does anyone have some tips for me ?
cherrs,
Uter
I'm look through file grid.celledit.js and understand that editCell(iRow,iCol, ed, fg) - is exactly that it I need!
I'm writing this:
var grid = jQuery('#grid_variant');
...
grid.editCell(1,1,true,true);
}
And select cell (1,1).
Uter You may type e.g. so:
if(e.keyChar == YOU_KEY)
{
var grid = jQuery('#grid_variant');
if(grid.children().length)
grid.editCell(1,1,true,true);
}
});
But now I don't, how can I blur selection?!
I need it also!
Is any body some suggestion ?
14:48

Moderators
30/10/2007

Hello,
Maybe it will be included in 3.5 release.
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:
97 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