Image library display and datagrid
Posted: Fri Aug 26, 2011 11:06 am
Hi,
yet another datagrid posting.....
I have a gallery of images (thousands, say), and before I go down a dead end coding up a datagrid, I thought I'd ask the experts here !
I want to display each image using the whole screen of the device. As I navigate left or right, I want the next image to slide into view. Navigation eventually will be finger gestures on an ipad, and this is similar to the way an ipad navigates through an image gallery.
This is horizontal scrolling, and is a datagrid the best way to go about it ?
I was thinking the template row would only need a few images, and as the user scrolls, the code just replaces the filenames into the array. So if I have images A,B,C,D,E,F to show, and I am looking at C full-screen, my datagrid array only needs to have images B, C and D loaded. If I slide D into view, C moves left. When D is fully visible, I reload the datagrid array with C, D, and E, ready for the next sliding left or right.
Is this the right way to go about it please ?
Thanks
yet another datagrid posting.....
I have a gallery of images (thousands, say), and before I go down a dead end coding up a datagrid, I thought I'd ask the experts here !
I want to display each image using the whole screen of the device. As I navigate left or right, I want the next image to slide into view. Navigation eventually will be finger gestures on an ipad, and this is similar to the way an ipad navigates through an image gallery.
This is horizontal scrolling, and is a datagrid the best way to go about it ?
I was thinking the template row would only need a few images, and as the user scrolls, the code just replaces the filenames into the array. So if I have images A,B,C,D,E,F to show, and I am looking at C full-screen, my datagrid array only needs to have images B, C and D loaded. If I slide D into view, C moves left. When D is fully visible, I reload the datagrid array with C, D, and E, ready for the next sliding left or right.
Is this the right way to go about it please ?
Thanks