PDA

View Full Version : Nested list --- need to give alert box for empty category



aaron-weever
8 Nov 2013, 8:32 AM
Need help for nested list. (sencha 2.2)

When I tap an empty category under root level, it just went back to the root level again.

What I wanna is I need a alert box for empty category.

So I thought this is a bug for nested list and I tried to write some code inside itemTap.

like below:

listeners: {
itemtap: 'onItemTap'
}


onItemTap: function( view, list, index, record, target, e, eOpts) {
.....
},

What happened is the onItemTap function can be triggered, but it won't go to the next level when tapping any category under root level? And also it looks like the order of params is not correct.

Thanks!

fmoseley
12 Nov 2013, 9:59 PM
I'm not sure I am following you. Are you trying to replace the detailcard with a Ext.msg.Alert?
What version of 2.2 are you using?