DataGrid vs Field Behavior
Posted: Mon May 23, 2011 9:44 pm
Intuitively, I expect a group containing a field and a datagrid to have similar behaviors on the cards of a stack. This is not what I experience in this following simple example.
1. Make a new stack and on the first card place a field and a datagrid.
2. Select both objects and use the Object menu to make a group of them.
3. Select the group and go to the Inspector and check the box for 'Behave like a background'.
4. Make a new card and it will contain both a field and a datagrid (the group).
5. Go to the first card and type something in the field and then type something different in the field there.
6. You can go back and forth between cards and they would hold their field values. You could create a third card and it would have a blank field. Type something different in that field and all three cards will maintain their distinct values.
7. Now go back to card and put some contents into that datagrid by going to the inspector and the tab for contents. As an example type 'one' tab 'one'. When the inspector is closed you will see data in the grid.
8. Now go to card 2 and using the Inspector create the contents of 'two' tab 'two. On closing the inspector you will see that the grid has data in it.
9. Go back to card 1 and look at the datagrid. It shows nothing while I would expect it to show the original 'one' and 'one'.
10. Finally go to the Inspector for the datagrid on that card and check out the contents. You will see 'two' tab 'two' even though nothing appears to be showing. By going back to the Basic Properties option of the Inspector and taking the Refresh Data Grid option you will be able to see the 'two' and 'two' now on card 1.
11. A quick trip back to card 2 and you will find nothing visible in the grid anymore.
Why won't the datagrid as part of the background retain its individual information like the field does? Am I doing something incorrectly or do I have to put only the field in the background and have a different datagrid for each card.
1. Make a new stack and on the first card place a field and a datagrid.
2. Select both objects and use the Object menu to make a group of them.
3. Select the group and go to the Inspector and check the box for 'Behave like a background'.
4. Make a new card and it will contain both a field and a datagrid (the group).
5. Go to the first card and type something in the field and then type something different in the field there.
6. You can go back and forth between cards and they would hold their field values. You could create a third card and it would have a blank field. Type something different in that field and all three cards will maintain their distinct values.
7. Now go back to card and put some contents into that datagrid by going to the inspector and the tab for contents. As an example type 'one' tab 'one'. When the inspector is closed you will see data in the grid.
8. Now go to card 2 and using the Inspector create the contents of 'two' tab 'two. On closing the inspector you will see that the grid has data in it.
9. Go back to card 1 and look at the datagrid. It shows nothing while I would expect it to show the original 'one' and 'one'.
10. Finally go to the Inspector for the datagrid on that card and check out the contents. You will see 'two' tab 'two' even though nothing appears to be showing. By going back to the Basic Properties option of the Inspector and taking the Refresh Data Grid option you will be able to see the 'two' and 'two' now on card 1.
11. A quick trip back to card 2 and you will find nothing visible in the grid anymore.
Why won't the datagrid as part of the background retain its individual information like the field does? Am I doing something incorrectly or do I have to put only the field in the background and have a different datagrid for each card.