My Basic Question:
I am trying to use KONtx.control.Grid to create a list of entries grouped by headers, similar to the way the calendar on the iPhone groups appointments by date (as seen here:
http://media.wiley.com/Lux/57/117457.image0.jpg ) Does anyone know of a good way to do this?
More Information:
Theres a couple of problems in the way this works that make it tricky:
1. The header’s height is less than that of the height of the actual entries.
2. The headers should be skipped over by the roving highlight. Only the actual entries should be able to be focused.
3. There may be more entries than fit on a single page, I need it to be paginated. (this is further complicated by #4, see below)
4. There can be a different number of entries under each heading. Depending on how many entries fall under the same headings, a different number of entries may be able to fit on each page.
I’ve tried two approaches, both of which I can’t get to work fully:
Approach A:
Each header and each entry gets its own grid cell. There are two problems with this approach, firstly, I can’t figure out how to make the header cells have a smaller height than the entry cells, is this possible?. Secondly, the roving highlight does not skip the headers. From what I have read in this post:
http://developer.yahoo.net/forum/?showtopi...mp;endsession=1 skipping the headers doesn’t seem possible without extending Grid.
Approach B:
Every page gets its own gridcell. The problem here is that this makes everything on the whole page focus together at the same time. From what I’ve read here:
http://developer.yahoo.net/forum/?showtopi...mp;endsession=1 it doesn’t seem like its possible to get things within a gridcell to focus individually.
It seems like I might need to create a custom grid-like class and/or extend the existing Grid class to get this working, but I don’t really know where to start on something like this. I would greatly appreciate any advice/examples on how to best accomplish this.