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

Blank RadGridView... until sort

2 Answers 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian Sayatovic
Top achievements
Rank 1
Brian Sayatovic asked on 15 Jul 2013, 01:41 PM
I have a RadGridView (from version 2013.1.415.1050) in a dialog bound to a ItemsSource whose items have a couple of properties.  When the dialog first shows up, the grid appears to be blank, but upon closer inspection, I can see seven rows (matching the items in my items source!).  But the columns are all blank!

But then if I click a column header to sort... boom!  The data renders in the columns.  And it stays in the columns from then on as long as the dialog is open.  But if I close it and open it again, it's blank again until I sort a column again.

I verified with a breakpoint that the getter for one of my bound properties displayed in the column is not hit when the RadGridView with 7 blank rows first renders.  It is only hit once I sort a column.

What else can I do to diagnose the problem?

2 Answers, 1 is accepted

Sort by
0
Brian Sayatovic
Top achievements
Rank 1
answered on 15 Jul 2013, 01:51 PM
I've found my problem.

FWIW, the extra diagnostic step I did was to put a FallbackValue into my DataMemberBindings to discover that some of my data wasn't quite loaded upon first render.
0
Dimitrina
Telerik team
answered on 17 Jul 2013, 04:29 PM
Hi,

Indeed, when you sort on any column, then the data will be rebound. 

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Brian Sayatovic
Top achievements
Rank 1
Answers by
Brian Sayatovic
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or