System.Windows.Controls.TextBlock header on RadGridView

2 posts, 0 answers
  1. Dave
    Dave avatar
    39 posts
    Member since:
    Jun 2008

    Posted 11 May 2015 Link to this post

    I hesitate to count how many RadGridViews I have between the app currently being used in an Enterprise situation and the new app we're working hard on. But today I've been working an issue I have NEVER seen before.

    I have two grids on a particular page that are *almost* identical. Both have some columns that the header is simply a piece of text written in the GridViewDataColumn "Header" property. Likewise both have some columns that we want the text to wrap, so I'm using a GridViewDataColumn.Header section with a TextBlock with wrapping properties. None of the header text is bound, it is simple text either as Header= or in a .Header section.

    Today I noticed one of the grids is displaying "System.Windows.Controls.TextBlock" instead of the Header. And it doesn't matter if it is a Header section or simply a Header parameter.. not all fail but the ones that are failing are from both types of Header display.

    To add insult to injury, I commented one out that wasn't working correctly (one with the wrapping setup), and copied the one above in the xaml and only changed the binding value and UniqueName... left the simple Header= property the same... and it STILL displays as "System.Windows.Controls.TextBlock".

    If I had just initiated this grid, I'd say I had something wrong, but this has been working for quite a while, and all of a sudden it's not displaying simple header text.

    I've compared all the Telerik references, and ensured they are the correct (consistent and latest) version.

    Has anyone seen this before? What the heck is it doing?

    And no... this is a grid on a usercontrol stuck inside a 44 project app, and the chance of me pulling it out into something small enough to send and have it still not work probably isn't worth the effort of trying...


  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 14 May 2015 Link to this post

    Hi Dave,

    I am sorry to hear you experience such an issue, it would be indeed strange that it only started occurring on one RadGridView. 

    Generally, we are neither aware of such an issue, nor we had it reported before. RadGridView's Header is an object and you could directly assign any object for it. Would you please share how have you defined it exactly? What is the value of the property you are displaying as a Header? Is it eventually a TextBlock itself? Are you able to isolate the issue in a demo project and send it to us? You can open a new support ticket and attach the sample there.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top