This is a migrated thread and some comments may be shown as answers.

Panel not Selected when Using UserControls

1 Answer 42 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 02 May 2012, 04:33 PM
Hi,

I'm using RadCoverflow for one of my project.  Inside the Coverflow, I'm referencing Usercontrols that I created.  The coverflow and the usercontrols are rendering properly.  However I lost the ability to select the coverflow panel if I am clicking from inside the area of the usercontrol. 

For example, inside the usercontrol is a RadGridView.  When I click inside the area of the RadGridview, the gridview item is selected.  But the coverflow panel is not transitioning to the center (or not being selected.)

Any thoughts how I can fix this issue?

Thanks,
Mike

1 Answer, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 21 May 2012, 07:37 PM
Hi Michael,

If I understand your question correctly, you have a RadCoverFlow and a RadGridView in a usercontrol on the same page. When you select an item in the RadGridView, you want the same item centered in the RadCoverFlow? If this is not your question, please give me a little more detail as to what you are selecting and what you want to happen.

There are a couple ways to address this. You can assign the SelectedItem property of the control that is currently in focus to the control that is not in focus. Use the SelectionChanged event to center the RadCoverFlow on the item you want and vice-versa.

You can sync the controls by using the selectedIndex or, if you have implemented MVVM in your project, filter the other control using an item in your ViewModel.

In summary, use an event handler on your current control to alter the other control's position. If you'd like more help, add some specific detail in a reply here or submit a ticket. (Drop down your Username at the top of this page, select "Support Tickets" from the list and then choose "Contact Support Team.)

Thank you for using RadControls,
Lancelot
Tags
CoverFlow
Asked by
Michael
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Share this question
or