[flexcoders] Re: Programmatic scrolling of a TileList?
any help out there? --- In flexcoders@yahoogroups.com, djbrown_rotonews [EMAIL PROTECTED] wrote: anyone? :) --- In flexcoders@yahoogroups.com, djbrown_rotonews djbrown_rotonews@ wrote: I've got a tile list component that I want to be able to scroll through horizontally without the visual presence of the scroll bars themselves. I've got a set of arrows that the user can click on to scroll through the items, but it's not quite working as desired. Basically, my itemRenderers are data grids, but I don't want the user to be able to view just half a grid etc.. There might be 5 grids under the covers, but I want only 3 full ones to be displayed at any given time. I'm using the button controls to increment through the selectedIndex of the TileList itself, and then calling the scrollToIndex() method using the index, but it behave as desired: Default view: Grids 1, 2 and 3 visible User click to navigate to the right, so I'd want Grids 2, 3 and 4 to be visible. The problem is that it's always displaying Grids 1, 2 and 3 up to point where the selectedIndex is now Grid 4, and all I get displayed in Grid 4 (I'd want Grids 2, 3, and 4) I'm hoping that made some sense. will I need to extend the TileList class and mess around with the visible property for each renderer as well?
[flexcoders] Re: Programmatic scrolling of a TileList?
I have no idea but maybe the carousel at http://giles.roadnight.name/components.cfm might give you some ideas. --- In flexcoders@yahoogroups.com, djbrown_rotonews [EMAIL PROTECTED] wrote: any help out there? --- In flexcoders@yahoogroups.com, djbrown_rotonews djbrown_rotonews@ wrote: anyone? :) --- In flexcoders@yahoogroups.com, djbrown_rotonews djbrown_rotonews@ wrote: I've got a tile list component that I want to be able to scroll through horizontally without the visual presence of the scroll bars themselves. I've got a set of arrows that the user can click on to scroll through the items, but it's not quite working as desired. Basically, my itemRenderers are data grids, but I don't want the user to be able to view just half a grid etc.. There might be 5 grids under the covers, but I want only 3 full ones to be displayed at any given time. I'm using the button controls to increment through the selectedIndex of the TileList itself, and then calling the scrollToIndex() method using the index, but it behave as desired: Default view: Grids 1, 2 and 3 visible User click to navigate to the right, so I'd want Grids 2, 3 and 4 to be visible. The problem is that it's always displaying Grids 1, 2 and 3 up to point where the selectedIndex is now Grid 4, and all I get displayed in Grid 4 (I'd want Grids 2, 3, and 4) I'm hoping that made some sense. will I need to extend the TileList class and mess around with the visible property for each renderer as well?
RE: [flexcoders] Re: Programmatic scrolling of a TileList?
Setting horizontalScrollPosition might be better. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Thursday, April 24, 2008 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Programmatic scrolling of a TileList? I have no idea but maybe the carousel at http://giles.roadnight.name/components.cfm http://giles.roadnight.name/components.cfm might give you some ideas. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , djbrown_rotonews [EMAIL PROTECTED] wrote: any help out there? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , djbrown_rotonews djbrown_rotonews@ wrote: anyone? :) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , djbrown_rotonews djbrown_rotonews@ wrote: I've got a tile list component that I want to be able to scroll through horizontally without the visual presence of the scroll bars themselves. I've got a set of arrows that the user can click on to scroll through the items, but it's not quite working as desired. Basically, my itemRenderers are data grids, but I don't want the user to be able to view just half a grid etc.. There might be 5 grids under the covers, but I want only 3 full ones to be displayed at any given time. I'm using the button controls to increment through the selectedIndex of the TileList itself, and then calling the scrollToIndex() method using the index, but it behave as desired: Default view: Grids 1, 2 and 3 visible User click to navigate to the right, so I'd want Grids 2, 3 and 4 to be visible. The problem is that it's always displaying Grids 1, 2 and 3 up to point where the selectedIndex is now Grid 4, and all I get displayed in Grid 4 (I'd want Grids 2, 3, and 4) I'm hoping that made some sense. will I need to extend the TileList class and mess around with the visible property for each renderer as well?
[flexcoders] Re: Programmatic scrolling of a TileList?
It sounds like you are on the right path, however, initially the scrollToIndex() is 1, correct? Each button click should increment the scrollToIndex() by 1 (or -1 if moving left on the list), so instead of scrollToIndex() being 4 after the click, it should be 2. Next click, 3, etc Just be careful to account for the total number in the index so you don't get an error by trying to go to index position of negative 1 or, in this example, 5. --- In flexcoders@yahoogroups.com, djbrown_rotonews [EMAIL PROTECTED] wrote: any help out there? --- In flexcoders@yahoogroups.com, djbrown_rotonews djbrown_rotonews@ wrote: anyone? :) --- In flexcoders@yahoogroups.com, djbrown_rotonews djbrown_rotonews@ wrote: I've got a tile list component that I want to be able to scroll through horizontally without the visual presence of the scroll bars themselves. I've got a set of arrows that the user can click on to scroll through the items, but it's not quite working as desired. Basically, my itemRenderers are data grids, but I don't want the user to be able to view just half a grid etc.. There might be 5 grids under the covers, but I want only 3 full ones to be displayed at any given time. I'm using the button controls to increment through the selectedIndex of the TileList itself, and then calling the scrollToIndex() method using the index, but it behave as desired: Default view: Grids 1, 2 and 3 visible User click to navigate to the right, so I'd want Grids 2, 3 and 4 to be visible. The problem is that it's always displaying Grids 1, 2 and 3 up to point where the selectedIndex is now Grid 4, and all I get displayed in Grid 4 (I'd want Grids 2, 3, and 4) I'm hoping that made some sense. will I need to extend the TileList class and mess around with the visible property for each renderer as well?
[flexcoders] Re: Programmatic scrolling of a TileList?
that's getting me tons closer to where I want to be, Alex. Thanks! and that carousel component looks pretty cool too. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Setting horizontalScrollPosition might be better. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Thursday, April 24, 2008 11:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Programmatic scrolling of a TileList? I have no idea but maybe the carousel at http://giles.roadnight.name/components.cfm http://giles.roadnight.name/components.cfm might give you some ideas. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , djbrown_rotonews djbrown_rotonews@ wrote: any help out there? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , djbrown_rotonews djbrown_rotonews@ wrote: anyone? :) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , djbrown_rotonews djbrown_rotonews@ wrote: I've got a tile list component that I want to be able to scroll through horizontally without the visual presence of the scroll bars themselves. I've got a set of arrows that the user can click on to scroll through the items, but it's not quite working as desired. Basically, my itemRenderers are data grids, but I don't want the user to be able to view just half a grid etc.. There might be 5 grids under the covers, but I want only 3 full ones to be displayed at any given time. I'm using the button controls to increment through the selectedIndex of the TileList itself, and then calling the scrollToIndex() method using the index, but it behave as desired: Default view: Grids 1, 2 and 3 visible User click to navigate to the right, so I'd want Grids 2, 3 and 4 to be visible. The problem is that it's always displaying Grids 1, 2 and 3 up to point where the selectedIndex is now Grid 4, and all I get displayed in Grid 4 (I'd want Grids 2, 3, and 4) I'm hoping that made some sense. will I need to extend the TileList class and mess around with the visible property for each renderer as well?
[flexcoders] Re: Programmatic scrolling of a TileList?
anyone? :) --- In flexcoders@yahoogroups.com, djbrown_rotonews [EMAIL PROTECTED] wrote: I've got a tile list component that I want to be able to scroll through horizontally without the visual presence of the scroll bars themselves. I've got a set of arrows that the user can click on to scroll through the items, but it's not quite working as desired. Basically, my itemRenderers are data grids, but I don't want the user to be able to view just half a grid etc.. There might be 5 grids under the covers, but I want only 3 full ones to be displayed at any given time. I'm using the button controls to increment through the selectedIndex of the TileList itself, and then calling the scrollToIndex() method using the index, but it behave as desired: Default view: Grids 1, 2 and 3 visible User click to navigate to the right, so I'd want Grids 2, 3 and 4 to be visible. The problem is that it's always displaying Grids 1, 2 and 3 up to point where the selectedIndex is now Grid 4, and all I get displayed in Grid 4 (I'd want Grids 2, 3, and 4) I'm hoping that made some sense. will I need to extend the TileList class and mess around with the visible property for each renderer as well?