Hi.
I'm having a problem with the following code:
This is the "Showing and hiding radgrid columns outside the radgrid" example from the Telerik website, in a dropdowncontent. When I run this and set the datacontext, "TableGrid" shows data properly but "ListBox" does not show the column headers. If I take the "LayoutRoot" stackpanel up a level, out of the radribbonbutton and into the radribbongroup driectly, it works fine ("ListBox" contains the "TableGrid" headers.) Poking around I've read that that the dropdowncontext doesn't share the same visual tree as the parent, but I would think I could bind controls from within the dropdowncontext. Can you point me in the right direction to resolve this please?
Thanks,
MR
I'm having a problem with the following code:
<
telerik:RadRibbonDropDownButton.DropDownContent
>
<
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
x:Name
=
"LayoutRoot"
>
<
ListBox
Name
=
"ListBox"
ItemsSource
=
"{Binding Path=Columns, ElementName=TableGrid}"
>
<
ListBox.ItemTemplate
>
<
DataTemplate
>
<
CheckBox
Content
=
"{Binding Header}"
IsChecked
=
"{Binding IsVisible, Mode=TwoWay}"
/>
</
DataTemplate
>
</
ListBox.ItemTemplate
>
</
ListBox
>
<
telerik:RadGridView
Name
=
"TableGrid"
ItemsSource
=
"{Binding Units}"
ShowGroupPanel
=
"False"
/>
</
StackPanel
>
</
StackPanel
>
</
telerik:RadRibbonDropDownButton.DropDownContent
>
Thanks,
MR