This question is locked. New answers and comments are not allowed.
Hi
I've recently upgraded to the Q2 version of the controls and am now having an issue with binding for column headings - they do not seem to get bound and if I set a breakpoint on the binding it never gets called.
XAML:
And in the code behind:
This used to work with the v1 controls. Any thoughts on how to work-around?
Thanks
Keith
I've recently upgraded to the Q2 version of the controls and am now having an issue with binding for column headings - they do not seem to get bound and if I set a breakpoint on the binding it never gets called.
XAML:
<
telerik:RadTreeListView
x:Name
=
"grd"
Grid.Row
=
"1"
FrozenColumnCount
=
"1"
IsReadOnly
=
"True"
>
<
telerik:RadTreeListView.ColumnGroups
>
<
telerik:GridViewColumnGroup
Name
=
"Planned"
Header
=
"Planned"
/>
<
telerik:GridViewColumnGroup
Name
=
"Actual"
Header
=
"Actual"
/>
</
telerik:RadTreeListView.ColumnGroups
>
<
telerik:RadTreeListView.Columns
>
<
telerik:GridViewDataColumn
UniqueName
=
"colGeography"
Width
=
"200"
Header
=
"{Binding ColumnHeaders[0]}"
/>
<!-- Planned -->
<
telerik:GridViewDataColumn
ColumnGroupName
=
"Planned"
Width
=
"68"
Header
=
"{Binding ColumnHeaders[1]}"
/>
<
telerik:GridViewDataColumn
ColumnGroupName
=
"Planned"
Width
=
"68"
Header
=
"{Binding ColumnHeaders[2]}"
/>
<!-- Actual -->
<
telerik:GridViewDataColumn
ColumnGroupName
=
"Actual"
Width
=
"68"
Header
=
"{Binding ColumnHeaders[3]}"
/>
</
telerik:RadTreeListView.Columns
>
</
telerik:RadTreeListView
>
And in the code behind:
private
void
SetColumnHeadings()
{
ColumnHeaders.Clear();
//Sample column headings
ColumnHeaders.Add(
""
);
ColumnHeaders.Add(
"Plan 1"
);
ColumnHeaders.Add(
"Plan 2"
);
ColumnHeaders.Add(
"Actual 1"
);
}
public
ObservableCollection<
string
> ColumnHeaders {
get
;
set
; }
This used to work with the v1 controls. Any thoughts on how to work-around?
Thanks
Keith