This question is locked. New answers and comments are not allowed.
Hello,
I have come up with an issue or maybe not i dunno but i think i miss something, my problem is simple, i have a GridView and it includes RowDetailsTemplate which is another UserControl in my project.The issue is, in my RowDetailsTemplate there are TextBlocks just as used in Telerik examples, but they are not shown when DetailTemplate expands. on the other hand i tried to put some other usercontrols like a border and slider, they do shown when DetailTemplate expands. Here is my code:
The main GridView control, as you see, i used StaticResource for RowDetailsTemplate:
I have come up with an issue or maybe not i dunno but i think i miss something, my problem is simple, i have a GridView and it includes RowDetailsTemplate which is another UserControl in my project.The issue is, in my RowDetailsTemplate there are TextBlocks just as used in Telerik examples, but they are not shown when DetailTemplate expands. on the other hand i tried to put some other usercontrols like a border and slider, they do shown when DetailTemplate expands. Here is my code:
The main GridView control, as you see, i used StaticResource for RowDetailsTemplate:
<Controls:RadGridView Name="grdPlayerScreens" CanUserFreezeColumns="False" Grid.Row="2" RowDetailsVisibilityMode="VisibleWhenSelected" RowDetailsTemplate="{StaticResource ScreenConfigEditDetailsTemplates}" AutoGenerateColumns="False" EnableColumnVirtualization="False" ScrollMode="RealTime" IsReadOnly="True" RowIndicatorVisibility="Collapsed"> <Controls:RadGridView.Columns> <Controls:GridViewDataColumn UniqueName="RSScreenConfig.Power" Header="Power" /> <Controls:GridViewDataColumn UniqueName="RSScreenConfig.Volume" Header="Volume" /> <Controls:GridViewDataColumn UniqueName="RSScreenConfig.Brightness" Header="Brightness" /> <Controls:GridViewDataColumn UniqueName="RSScreenConfig.Contrast" Header="Contrast"/> <Controls:GridViewDataColumn UniqueName="RSScreenConfig.Color" Header="Color" /> <Controls:GridViewDataColumn UniqueName="RSScreenConfig.Sharpness" Header="Sharpness"/> <Controls:GridViewDataColumn UniqueName="RSScreenConfig.BackLight" Header="BackLight" /> <Controls:GridViewDataColumn UniqueName="RSScreenConfig.PictureMode" Header="Picture Mode"/> <Controls:GridViewDataColumn UniqueName="RSSourceType.PortName" Header="Port"/> <Controls:GridViewDataColumn UniqueName="RSSourceType.SourceName" Header="Source"/> </Controls:RadGridView.Columns> </Controls:RadGridView>And here is my RowDetailsTemplate UserControl:
<UserControl x:Class="xxx.UserControls.ScreenConfigEditDetailsTemplate" mc:Ignorable="d" Width="Auto" Height="100"> <Grid x:Name="detailsGrid" Background="White"> <Grid.ColumnDefinitions> <ColumnDefinition Width="15*"/> <ColumnDefinition Width="20*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="33*"/> <RowDefinition Height="33*"/> <RowDefinition Height="33*"/> </Grid.RowDefinitions> <Border BorderThickness="3" CornerRadius="5" BorderBrush="Black"> <TextBlock x:Name="the text is not shown" Text="the text is not shown" Height="25" Width="250" FontSize="14" Grid.Row="0" Grid.Column="0"/> </Border> <TextBlock Text="the text is not shown" Height="25" Width="250" FontSize="14" Grid.Row="1" Grid.Column="0"/> <Slider Value="{Binding RSScreenConfig.Volume}" Grid.Row="1" Grid.Column="1" MinWidth="100" LargeChange="10" Maximum="100" Minimum="1" SmallChange="1" /> </Grid> </UserControl> Am i missing something? Please help.
Thanks.