Created
July 7, 2014 14:53
-
-
Save johnny4young/e7e2b0caba0e9809ed31 to your computer and use it in GitHub Desktop.
mostrar un radgridview como menú de un dropdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<telerik:RadDropDownButton Content="Agencias" VerticalContentAlignment="Top"> | |
<telerik:RadDropDownButton.DropDownContent> | |
<telerik:RadContextMenu BorderThickness="0" IconColumnWidth="0"> | |
<telerik:RadGridView | |
CanUserInsertRows="False" | |
ItemsSource="{Binding DataContext.DocumentosAgencias,RelativeSource={RelativeSource AncestorType=telerik:RadDataForm}}" | |
GroupRenderMode="Flat" AutoGenerateColumns="False" | |
x:Name="dtgAgencias" | |
IsReadOnly="False" | |
ScrollViewer.VerticalScrollBarVisibility="Visible" | |
EnableColumnVirtualization="True" | |
EnableRowVirtualization="True" | |
SelectionMode="Multiple" | |
Height="250" | |
MinWidth="800" | |
MaxWidth="800" | |
IsScrolling="True" | |
> | |
<i:Interaction.Behaviors> | |
<behavior:RadGridViewSelectedItemsBehavior SelectedItems="{Binding DocumentosAgencias, Mode=TwoWay}" /> | |
</i:Interaction.Behaviors> | |
<telerik:RadGridView.Columns> | |
<telerik:GridViewSelectColumn></telerik:GridViewSelectColumn> | |
<telerik:GridViewColumn Header="Agencia"> | |
<telerik:GridViewColumn.CellTemplate> | |
<DataTemplate> | |
<TextBlock Text="{Binding NombrePartial, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></TextBlock> | |
</DataTemplate> | |
</telerik:GridViewColumn.CellTemplate> | |
</telerik:GridViewColumn> | |
</telerik:RadGridView.Columns> | |
</telerik:RadGridView> | |
</telerik:RadContextMenu> | |
</telerik:RadDropDownButton.DropDownContent> | |
</telerik:RadDropDownButton> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment