List Info

Thread: how to get tr:table rowKeys




how to get tr:table rowKeys
country flaguser name
Italy
2007-08-30 15:32:25
Hi, I used to manage tr:table through my own DataModel,
which defines 
and returns rowKeys.
However, for simpler cases usually just a row array is
enough, where row 
objects offer all field getters. Thus no special model is
needed.
If I want to preselect some rows by means of the
selectedRowKeys 
attribute, how do I get rowKeys from array
elements/positions ?
Thanks,

-- Renzo


Re: how to get tr:table rowKeys
user name
2007-08-30 16:15:17
The index of the element in the array is the rowKey. Trinidad wraps the array into SortableModel.

--Venkata

On 8/30/07, Renzo Tomaselli < renzo.tomasellitecnotp.it"> renzo.tomasellitecnotp.it> wrote:
Hi, I used to manage tr:table through my own DataModel, which defines
and returns rowKeys.
However, for simpler cases usually just a row array is enough, where row
objects offer all field getters. Thus no special model is needed.
If I want to preselect some rows by means of the selectedRowKeys
attribute, how do I get rowKeys from array elements/positions ?
Thanks,

-- Renzo


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )