i am trying to creat a gallery applicaiton, i have adobe's imageViewer component and i want to make a custom layout functionality on my applicaiton.
1- How can i creat custom (2*3 - 3*3 - 4*4) layouts at runtime ?
2- How can i add my imageViewer component in it at runtime ?
I tried to use datagrid component but adding and deleting rows and colums are not so effective. and i could not add my imageviewer component in its cells.
How can i do that ?
If you want to add your image viewer component to the datagrid's cell, you must add it using an itemrenderer for that cell. If it is dynamic, then use ClassFactory to create item renderer dynamically. Following is the link which shows how to add an itemrender at runtime.
I already tried to add my component with itemrenderer, but the adding and deleting rows and colums part is the part that i couldnt do. I did not try class factory, i can give it a shot.