Blank RadGridView... until sort

3 posts, 0 answers
  1. Brian Sayatovic
    Brian Sayatovic avatar
    91 posts
    Member since:
    Nov 2009

    Posted 15 Jul 2013 Link to this post

    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. Brian Sayatovic
    Brian Sayatovic avatar
    91 posts
    Member since:
    Nov 2009

    Posted 15 Jul 2013 Link to this post

    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.
  3. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Jul 2013 Link to this post

    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 >>
Back to Top