Question

Is it possible to use sections in Senchas Nestedlist? Currently i am dissecting a native iOS app and i wonder if the standard UITableView behavior is reproducable using Sencha/Html5/JS.

Example
(source: icodeblog.com)

The example screenshot above shows 3 sections: D, I, O

thanks

Was it helpful?

Solution

It's possible. You need to set to true this two list properties:

 grouped:true,
 indexBar: true,

Also your list's store must have getGroupString in order to know how to group the list items.

 getGroupString : function(record) {
      return record.get('firstName')[0];
 },

Here is live example: http://jsfiddle.net/sSyqF/16/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top