View Full Version : NestedList hide/show DetailCard

12 Sep 2011, 8:39 PM

I have a nestedList that I've built. At the root I have 2 data objects (Obj A, and Obj B)
If the user selects Object B.... I need to be able to show a detailCard at the leaf node.
If the user selects Object A.... Then the list leaf nodes should not respond to touch events or show detailCards.

The code I've currently written, shows a detailCard at all the leaf nodes.... What should I do ?

Thanks in advance

12 Sep 2011, 9:32 PM
Ok i basically solved the problem using the code below :

getDetailCard: function(item, parent){
if (item.attributes.record.get("model")=="ObjectB")
return false;
//create ur detailCard here...
return detailCard;