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

[Solved] Is it possible to implement multiline (complex) header?

1 Answer 37 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrei
Top achievements
Rank 1
Andrei asked on 29 Sep 2014, 08:27 AM
Is it possible to implement multiline (complex) header?
I'm looking for something like this - http://www.telerik.com/forums/can-we-have-multiline-column-header.

Thanks

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 02 Oct 2014, 08:50 AM
Hi Andrei,

It is possible. Please, find attached a modified version of our Sales Statistics example (our examples are installed in this folder: C:\Program Files (x86)\Telerik\UI for Windows 8.1 XAML Q2 2014\Demos). Generally, the idea is to provide updated template for the DataGridColumnHeader control. My attachment contains a template, which is based on the default one, with a small update -- a vertical StackPanel is provided, where you can put your own content. Its DataContext has a Header property, which contains the object passed as header to the column, allowing you to bind to its properties. This is shown in the attached example.

Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid for XAML
Asked by
Andrei
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or