I have a main page (<Page>) that uses the Transition Ctrl to load user controls (from a menu). I need to be able to pass user data (object containing user name, roles, etc.) from main page to every user ctrl loaded.
Any suggestions would be appreciated.
M.
3 Answers, 1 is accepted
0
Miroslav Nedyalkov
Telerik team
answered on 17 Oct 2011, 08:49 AM
Hello Marcelo,
You could provide your data object to your UserControls using their DataContext property just before setting them to the Content property of the RadTransitionControl.
Hope this helps.
Best wishes,
Miroslav Nedyalkov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I've created a sample project for you. Please note that this is just one approach to achieve the desired behavior. Another option is to set different DataContext to your UserControls when you set them as content of RadTransitionControl. Everything depends on your application and requirements.