Hi. I have an strange behaviour, but I cannot tell when did it happen. I just have a project with a view containing a radgridview, using implicit styles, but the group header is not shown. Whenever I put another radgridview in the same view without any attribute set, also the header is not shown, but it is shown if I am using it in a view of a new project without implicit styles.
Did anyone got this problem and found a solution?
7 Answers, 1 is accepted
Could you please provide more information about the exact setup at your end so that I may better assist you in finding a solution:
1) What attributes have you set to your RadGridView?
2) Just to make sure - are you referring to the GridViewHeaderRow or GridViewGroupRow/GroupHaderRow element?
3) Is the GroupRenderMode of your RadGridView set to Flat or Nester?
4) Have you defined any styles, targeting the GridViewHeaderRow, GridViewGroupRow or GroupHeaderRow elements?
Bear in mind that when using Implicit Styles you should base those styles on GridViewHeaderRowStyle, GridViewGroupRowStyle and GroupHeaderRowStyle, respectively.
Please also note that, as stated in the Grouping Modes article I've referenced above, when dealing with GroupRenderMode="Flat", you should target the GroupHeaderRow element as opposed to Nested mode's GridViewGroupRow element.
Thank you very much for your answer. As soon as I have a new time window I will paste the xaml part and verify everything you wrote in your email.
Keep in mind that is version 2012 Q1, so the GroupRenderMode is not defined. The list have no style applied but the default implicit that is copied from OfficeBlue. The only style is for the row.
This is how I have included the radgridview.
Just to confirm. I've made a new solution with two projects, one of them default installed DLLs, and other with NoXaml. The first the group header is shown, in the second one (implicit styles), the group is hidden.
and for implicit styling in resources and in App.xaml resources dictionary:
What should I do to allow group header to be visible when using implicit styling?
Please excuse me for the misunderstanding.
If I'm not mistaken, you're referring to RadGridView's Group Panel, which is not visible when using the Q1 2012 SP1 NoXaml binaries. That was an issue with that particular version but it has been fixed in the Q2 2012 release. Updating to this version of the controls would solve this problem, but I would recommend upgrading to the most recent version of the suite if possible.
A simple workaround I can offer, however, is to create a style, targeting the GridViewGroupPanel element with a Visibility property set to Visible and set it as the GroupPanelStyle of your RadGridView instance. Here's how to do that:
Please let me know if this approach works for you.
Sorry for late answer. I was off on friday. I tested this today and works like a charm. Thankyou very much.