I'm having some trouble getting custom column headers working I wonder if anyone can help.
The default ColumnHeaderContainer style has a TextBlock defined within its ContentTemplate which is bound to Header, I changed this to a ContentPresenter so I could display some custom content (a grid with text and icon).
This works fine however I get a XamlParseException error that I can't seem to track down whenever scrolling comes into play. I've found two ways of producing this issue:
1. Have your browser sized large enough so no scroll bars load on your GanttView, now resize your window so the scroll bars appear and it will error (usually).
2. Have your browser sized small enough so scroll bars DO appear, sometimes loading the page with GanttView on will not cause it to error, scrolling back and fourth quickly will always trigger the error though.
I'm currently using control version 2013.2.724.1050 from July 25 2013.
Any help would be appreciated,
Colin
The default ColumnHeaderContainer style has a TextBlock defined within its ContentTemplate which is bound to Header, I changed this to a ContentPresenter so I could display some custom content (a grid with text and icon).
<
Setter
Property
=
"ContentTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<!--<TextBlock Text="{Binding Header}"/>-->
<
ContentPresenter
Content
=
"{Binding Header}"
/>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
<
telerik:ColumnDefinition
MemberBinding
=
"{Binding End}"
Width
=
"AutoHeaderAndContent"
>
<
telerik:ColumnDefinition.Header
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
Grid.Column
=
"0"
Text
=
"End"
/>
<
dat:DescriptionViewer
Grid.Column
=
"1"
Description
=
"tttttttttttttttttest"
/>
</
Grid
>
</
telerik:ColumnDefinition.Header
>
</
telerik:ColumnDefinition
>
This works fine however I get a XamlParseException error that I can't seem to track down whenever scrolling comes into play. I've found two ways of producing this issue:
1. Have your browser sized large enough so no scroll bars load on your GanttView, now resize your window so the scroll bars appear and it will error (usually).
2. Have your browser sized small enough so scroll bars DO appear, sometimes loading the page with GanttView on will not cause it to error, scrolling back and fourth quickly will always trigger the error though.
I'm currently using control version 2013.2.724.1050 from July 25 2013.
Any help would be appreciated,
Colin