Hello, We would like to see about the possibility of making the Funnel and Pin icons on the XamDataGrid Column Header Labels display beneath the Column Header text rather than to the right of the Column text. Is this possible? Thank you. Sincerely, -Geoffrey
Hello Geoffrey,
Certainly you can do this. You have to retemplate the LabelPresenter. These icons(elements) are inside a Grid (5 columns as far as I remember). You can see the generic style in the DefaultStyles directory in the Infragistics folder and use it to make your own.
Let me know if you have any questions on this.
Regards,
Alex.
I am attaching the style example for this.
Hi Alex, This is very close. Thank you for posting this. There was a reference in there to a namespace aliased as "d". It was 'd:LayoutOverrides="Width, Height"'. What is this namespace "d" referring to? I am getting the error '"d" is an undeclared namespace'. I am not certain whether removing the line entirely is causing my other issue. Although the display is below the text, it is still segmenting off it's own space and remaining to the right of the text. What we are trying to do is to conserve window space across the screen. Currently it is taking up the same amount of real estate width. Again, thank you for posting this. I will continue to study it to see if I can figure out the answer. If you have any ideas, thank you in advance. Sincerely, -Geoffrey
Geoffrey,
These are Expression namespaces:
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
Basically, the LabelPresenter's layout panel is a grid. You can create Row and Column Definitions and place the elements in that grid in different rows and columns. You can also set ColumnSpan and RowSpan properties.
Thank you. It is compiling now. But am still faced with the problem that the images, although below the text, are still appearing to the right of the label text in each column, so we are still not conserving width real estate across the screen.
It's working. Thanks again for your help, Alex.
Adjust them with Grid.Column and Grid.Row properties of the elements that you are interested in (FilterIcon,SortIcon,SummaryIcon)