on 10-16-2007 2:54 PM
Hi,
I have a Table with few columns and InputFields like celleditors.
I select one row with one mouse-click and then move cursor with keyboard arrows to another row. I would like to get selected that row in which cursor is placed by pressing enter.
How I could do that?
Thanks!
I've tried this sentence:
wdContext.nodeMaterialesTabla().setLeadSelection(wdContext.nodeMaterialesTabla().currentMaterialesTablaElement().index());
and it doesn't work.
What do you mean with the other possible solutions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I understand your question correctly, you want to select a row when you press ENTER inside an input field of that row?
This can be done by
- assigning an action to the InputField.onEnter event
- mapping event parameter "nodeElement" to an action parameter "row" of type IWDNodeElement
- in the action handler, call row.node().setLeadSelection(row.index())
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.