PDA

View Full Version : checkbox before the nestedlist item



hemant1
19 Jun 2011, 10:08 PM
How can i display the checkbox before the nested list item
so i can keep the track of page visited



Ext.regModel('ListItem', {
fields: [{name: 'text', type: 'string'}]
});

store = new Ext.data.TreeStore({
model: 'ListItem',
root: data,

proxy: {
type: 'memory',
reader: {
type: 'tree',
root: 'items',
}
},
autoLoad: true
});

my_List = new Ext.NestedList({
title: 'Menu',

//displayField: 'text',
getItemTextTpl: function() {
return '<tpl><div>{text}</div></tpl>'
},
store: store,
listeners:{
leafitemtap:leafitemtap
}
});


thanks