PDA

View Full Version : Hide/Unhide item Conditionally



shiva-Kumar
10 Feb 2010, 4:51 AM
HI,
I need to hide/unhide item conditionally , please advise

Like by default i need to show grdResutView and hide grdSummaryView
and on click of button need to show both 50% to fit in layout

I am using anchor layout , my code looks like below



{
region: 'center',
layout:'anchor',
anchorSize: {width:800, height:600},
border:false,
items:[{
title:'Result Grid',
id: 'grdResutView',
title: 'Result View',
contentEl:'resgriddata',
collapsible: true,
anchor:'100% 50%'
},{
title:'Summary Grid',
id: 'grdSummaryView',
title: 'Summary View',
contentEl:'summaryGrid',
collapsible: true,
anchor:'100% 50%'
}]
}


Thanks
Shiva