On 5/3/06, Wally Randall <[EMAIL PROTECTED]> wrote:
> How can I enable/disable menu options which are dependent on user
> access privileges?
>
> Do the menu components expose methods for disabling and bluring
> selections which the user does not have permission to use?

(assuming Flex 2.0)

Use a custom item renderer. Store the user priviledge info in the data
provider - every item knows whether it should be disabled or not.
Based on that, get your item renderer to disable or enable itself.

// item renderer
<mx:Label enabled="{data.userAllowed}" ...

Manish


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to