-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, in my app i fill a multicolumn listbox from a table,
how i can get the value from the n-column of n row in a multicolumn listbox?
if the user select the 5 row(example), i need to get all the values of columns associated to these row.
Congratulations, for the new remodeled size
PD: i apologize for my english
This is an example in which I get the values of the columns of a Listbox.
void move(){
// get the selected Listitem
List children = ammsbox.selectedItem.children;
// get the first Column value and put it into a textbox
idAmministrazione.value = ((Listcell)children.get(0)).label;
// get the second Column value and put it into a textbox
codAmministrazione.value = ((Listcell)children.get(1)).label;
}
Here, ammsbox is the ID of the Listbox on which I have declared onSelect="move()".
The index of the get() method represent the column of the selected row (0 is the 1st, 1 is the 2nd...).
When I select a row, the values of every columns are reported into textboxes.
I hope to have help you.
Bye.
Asked: 2008-07-27 09:54:12 +0800
Seen: 172 times
Last updated: Jul 28 '08