This content has been marked as final. Show 2 replies
Your description of your requirements and your sample code do not paint a clear enough picture.
Your dataProvider has 4 pieces of data: batchId, bookingNumber, valueDate, immsBranch. Your current itemRenderer references two of those pieces of data, and you say you want to reference the other two. You can do that easily like this:
A basic question: will your DataGrid have two rows for each set of 4 pieces of data? If so then I understand your problem. If not, then you must clarify exactly how and when you would like the 4 pieces of data shown in your DataGrid.
In any case, you probably need a Repeater, and then need to figure out how to get at the right data at the right time in the Repeater.
See this FB 3 help topic and its sub-topics:
Dynamically Repeating Controls and Containers
Also search for this in the FB3 help to see the API:
You can define a listener for the Repeater for the Repeat event to specify processing for each iteration of the repeater.
Actually I want 2 columns with 2 pieces of data in each row. My problem is that I don't want to make an itemRenderer for each column, because every cell in each column basically has 2 labels, only the data changes.
The reason I need it to be dynamic is because I will have multiple rows, not just one value like in the example. The filled in values are just for testing purposes.
Thx for your help so far.