3.2.0

Select the input text in grid

Hi, how re u guys?

I have a problem, i did a search but can't find anthying to help.

When my cell receive the focus (with input template for edit), i wanna select the text, i already tried:

grid.getCellTemplate(col,row).element().select();
// doenst work because cell template is span
// i cant find the input template
grid.getCellTemplate(col, row).getContent("box/text").select( );
// doenst work, error in javascript parameter for "box/text" ?


Any idea guys?
Tkz.
Pc (from Brazil)
January 30,
help?!
Pc (from Brazil)
February 1,
Something like -

IE:

var e = grid.getCellTemplate(col, row).getContent("box/text").element();
var r = document.body.createTextRange();
r.moveToElementText(e);
r.select();

FF:

var e = grid.getCellTemplate(col, row).getContent("box/text").element();
e.select();
Alex (ActiveWidgets)
February 1,
yeah!!! finally!!!

Tkz a lot Alex.
go AW =)
Pc (from Brazil)
February 1,

This topic is archived.

See also:


Back to support forum