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

RadGridView styling when in Popup

0 Answers 25 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 23 May 2012, 04:32 PM
Hello, 

There seems to be a problem with RadGridView styling when it is placed in a Popup.

I have a Project where I have a RadGridView which has the Items and SelectedItem properties bound to a ViewModel.  I create a list of items in the code-behind and put them on the ViewModel, as well as selecting one of those items at random and putting that on the ViewModel to act as the SelectedItem.  At run time, everything is bound correctly, and the RadGridView is displayed with the list of items, with the SelectedItem row coloured using the default styling of the orange background. 

However, if I put the same RadGridView into a Popup, and introduce a Button which when pressed will allow the Popup to become visible, the orange styling doesn't appear.  The RadGridView is still bound correctly to both Items and SelectedItem, but the SelectedItem doesn't get the orange styling, and from a users point of view it looks like nothing is selected.  

This only happens the first time the Popup is shown.  Assuming the Popup disappears by some event (such as MouseLeave the Popup area), then the next time the Button is pressed, the SelectedItem of the RadGridView will be styled correctly.  It seems to be only the first time the Popup is shown, that the orange styling doesn't appear.  

I can provide a Project that illustrates this behaviour if required.

Stuart

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Stuart
Top achievements
Rank 1
Share this question
or