Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
focusing on grid without clicking on it!
25/02/2009
10:25
Avatar
Kirill
Member
Members
Forum Posts: 4
Member Since:
25/02/2009
sp_UserOfflineSmall Offline

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

loadComplete: function(){
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!

26/02/2009
06:30
Avatar
Uter
Member
Members
Forum Posts: 22
Member Since:
28/10/2008
sp_UserOfflineSmall Offline

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

26/02/2009
10:40
Avatar
Kirill
Member
Members
Forum Posts: 4
Member Since:
25/02/2009
sp_UserOfflineSmall Offline

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:

loadComplete: function(){
var grid = jQuery('#grid_variant');
...
grid.editCell(1,1,true,true);
}

And select cell (1,1).

Uter You may type e.g. so:

$('body').keydown(function(e){
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 ?

28/02/2009
14:48
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information