Make panel show/hide based on role admin from web.config page
Hi ,I am using ExtJs page for designing.
I used some panels in that page.
I want to make this panel visible true or false from Web.Config page based on roles like "admin" and not from controller.
Ext.create('Ext.form.Panel', {
id: 'SampleId',
margin: '0 0 5 0',
bodyPadding: 5,
width: 580,
collapseFirst: false,
collapsible: true,
title: 'Sample',
items: [
{
...........
}
]
}
)
How can I do this?
please guide me to make panel show/hide from web.config page based on role admin