iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi ClientUI Team,
Im not sure what Im doing wrong.
I have a UXDesktop with an UXDesktopDock. In the Dock i have UXDesktopDockButtons with UXStackItems inside.
The UXStackItems are my applications i want to lunch. This works great.
But not every user have access to all applications. This means i have user rights.
To hide an show the applications - the user has the right - i use the visibility property.
I build an RightsToVisibilityConverter to hide an show the application (UXStackItem).
To my problem: When an application (UXStackItem) is hide because the user doesn't have the right and the UXDesktopDockButton is clicked to open the grid with the UXStackItems and then the grid is closed again i get an "Unhandled Exception: System.NullReferenceException".
In the first picture i have attached you can see the UXDesktopDockButton Grid. One application is hide because of the user rights. In the secound picture you can see the exception.
I also have tried this in the Intersoft.ClientUI.Samples.WindowControls.Default.xamI change the StackMode of the pictures UXDesktopDockButton to GridStyle and set the Visibility property of the first UXStackItem (Interestingness) to 'Collapsed'. The same behavior.
When the StackMode is MenuStyle it works fine.
Can you help me. Is this a bug?
Cheers Mike
Thank you for the detail information regarding the exception which happen when an application (UXStackItem) is hidden (because the user doesn’t have the right) and UXDesktopDockButton is clicked to open. It is considered as bug.
I’d like to suggest you another approach for your scenario. Instead setting the Visibility to Collapsed to specific UXStackItem based on the permission of the user, you may try to use dynamic item approach for the scenario. For example: if the user has Administrator role, then provide the complete UXStackItem; if the user has Guest role, then provide proper items of UXStackItem for guest level.
Hope this helps.
Thx for the reply and the information.
I have fixed it with my ViewModel!
Cheers mike
Thank you for the prompt reply and glad to hear the good news that you have managed to rectify the reported problem by fixing it on the ViewModel.
I’ll update this thread with any news I heard from the team regarding the reported bug.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname