This content has been marked as final. Show 3 replies
I am not following.
Is the first DG multi-select? If so, and you select 3 rows, how many rows should display in the secong DG?
I do not understand this, "the same dataset, with the selected item only" at all. What is the "dataset"? If you are showing a "selectedItem" (single item), why are you using a datagrid?
By dataset, I mean an XMLList variable that's been populate by an XML file.
My XMLList contains a list of items with multple attributes.
In one datagrid, I want to display one attribute of the items. The user clicks on one or more items, clicks a button.
Then I want a second datagrid to display the selected items, but different attributes of the objects displayed.
For example, say I have sneakers. The XML file is a list of sneakers, ewch node with attributes for all the relevant info about the sneakers.
The first data grid just shows "brand/mode" field in one column. The user picks 2 different Nike sneakers. Click a button.
The second datagrid needs to show those sneakers, but now the "price", "description", and "available" attributes need to be displayed in columns.
I have tried just creating the second grid, set to display selectedItems from the first grid. However, the additional columns are coming up blank -- that's my problem.
The first DG has a column with datafield "@brand", the second has "@price", "@description" etc.
So perhaps I can't display the selectedItems? Do I have to use the original XMLList as the dataprovider for the second grid?
Never mind, I think I've got it figured out.