This is a migrated thread and some comments may be shown as answers.

how can i access controls in rowdetail

0 Answers 16 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jonghun kang
Top achievements
Rank 1
jonghun kang asked on 24 Mar 2011, 10:36 AM
I want to set the width of RadExpander in RowDetailsTemplate
and TextBlock's width of RadWrapPanel in  when runtime.

i can access contols in gridview of your asp.net ajax product
but your silvelight gridview dont offer findcontols().
I believe that your give another way to access contols in your silverlight gridview.

my.xaml file is like follow
<telerik:RadGridView x:Name="radGridView" ShowGroupPanel="False" IsFilteringAllowed="False"
                                                         Height="525"
                                                         AutoGenerateColumns="False"               
                                                         RowIndicatorVisibility="Collapsed" IsReadOnly="True"
                                                         CanUserSelect="True" CanUserResizeColumns="False"
                                                         CanUserFreezeColumns="False" >                                             
                                        <telerik:RadGridView.Columns>
                                            <telerik:GridViewToggleRowDetailsColumn  />
                                            <telerik:GridViewDataColumn DataMemberBinding="{Binding WriteYMD, Mode=OneWay, Converter={StaticResource ShortDateStringConverter}}"  Width="105" TextAlignment="Left" IsReadOnly="True"  >
                                                <telerik:GridViewDataColumn.Header>
                                                    <Grid>
                                                        <TextBlock Text="일자" TextWrapping="Wrap" HorizontalAlignment="Center"/>
                                                    </Grid>
                                                </telerik:GridViewDataColumn.Header>
                                            </telerik:GridViewDataColumn>
                                           </telerik:RadGridView.Columns>
                                        <telerik:RadGridView.RowDetailsTemplate>
                                            <DataTemplate>
                                                <StackPanel Orientation="Vertical" Margin="20,0,0,0">
                                                    <telerik:RadExpander x:Name="rdExWorkReport" ExpandDirection="Down"  IsExpanded="True"  HorizontalAlignment="Left">
                                                        <telerik:RadExpander.Header>
                                                            <TextBlock Text="일일업무"></TextBlock>
                                                        </telerik:RadExpander.Header>
                                                        <telerik:RadExpander.Content>
                                                            <telerik:RadWrapPanel>
                                                                <TextBlock Margin="12,0,0,0" Height="23" Width="335" Text="당일사항"
                                                                    Foreground="#FF5C9AC9" FontSize="10" FontFamily="Verdana" FontWeight="Bold"/>
                                                                <TextBlock Height="23" Width="335" Text="예정사항"
                                                                    Foreground="#FF5C9AC9" FontSize="10" FontFamily="Verdana" FontWeight="Bold" />
                                                                <TextBox x:Name="tbToday"  IsReadOnly="True" Margin="12,0,0,0" Height="200" Width="335" Text="{Binding TodayReport}" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
                                                                <TextBox x:Name="tbTomorrow"   IsReadOnly="True" Height="200" Width="335" Text="{Binding TomorrowReport}" AcceptsReturn="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"/>
                                                            </telerik:RadWrapPanel>
                                                        </telerik:RadExpander.Content>
                                                    </telerik:RadExpander>
                                                    
                                                </StackPanel>                                       
                                            </DataTemplate>
                                        </telerik:RadGridView.RowDetailsTemplate>
                                    </telerik:RadGridView>

No answers yet. Maybe you can help?

Tags
GridView
Asked by
jonghun kang
Top achievements
Rank 1
Share this question
or