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

RadDatePicker Not working inside RadGridView RowDetailsView

1 Answer 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shadhan
Top achievements
Rank 1
shadhan asked on 17 Dec 2009, 11:17 AM

Hi team,

Below is the xaml code
I have tried to bind and update data using RowDetailsView
Except Datepicker, other controls are working fine
can you please check what's wrong in code....

    <Grid.Resources> 
            <Style TargetType="telerik1:ChildDataControlsPresenter"
                <Setter Property="Template"
                    <Setter.Value> 
                        <ControlTemplate TargetType="telerik1:ChildDataControlsPresenter"
                            <telerik:RadGridView x:Name="radGridView1" RowDetailsVisibilityMode="VisibleWhenSelected" Height="400" > 
                                <telerik:RadGridView.RowDetailsTemplate> 
                                    <DataTemplate> 
                                        <Grid Margin="31,22,24,419" Name="grid1"
                                            <Grid.RowDefinitions> 
                                                <RowDefinition Height="32"/> 
                                                <RowDefinition Height="56*"/> 
                                            </Grid.RowDefinitions> 
                                            <Grid.ColumnDefinitions> 
                                                <ColumnDefinition Width="95" /> 
                                                <ColumnDefinition Width="201" /> 
                                                <ColumnDefinition Width="75" /> 
                                                <ColumnDefinition Width="352" /> 
                                            </Grid.ColumnDefinitions> 
                                            <Label Name="lblStartDate" Foreground="White" Content="Start Date :" Grid.Row="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" Width="79" /> 
                                            <Label Name="lblStatus" Foreground="White"  Content="Status :" Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="2" HorizontalAlignment="Left" Width="60" /> 
                                            <TextBox Name="txtStatus" Grid.Column="3" Grid.Row="0" Height="25" BorderThickness="2" Text="{Binding status }" /> 
                                            <telerik1:RadDatePicker Height="24" Name="txtStartDate" Width="138" SelectionChanged="txtStartDate_SelectionChanged" Grid.Column="1" SelectedDate="{Binding createdDate}" Grid.Row="0" /> 
 
                                            <Label Name="lblDueDate" Content="Due Date :" Foreground="White"  Grid.Row="1" Margin="6,6,19,21" /> 
                                            <telerik1:RadDatePicker Height="24" Name="txtDueDate" DisplayMode="MonthView"  Width="138" Grid.Column="1" Grid.Row="1" SelectedDate="{Binding dueDate}" Margin="10,5,10,20" /> 
                                            <Label Name="lblPriority" Content="Priority :" Foreground="White" Grid.Row="1" Grid.Column="2" Margin="1,2,14,24" /> 
                                            <TextBox Name="txtPriority" Grid.Column="3" Height="25" Grid.Row="1" Width="100" Text="{Binding priority}" HorizontalAlignment"Left" BorderThickness="2" Margin="5,4,0,22" /> 
                                            <Label Name="lblComplete" Content="% Complete :"  Foreground="White" Grid.Row="1" Grid.Column="3" Margin="125,4,0,20" HorizontalAlignment="Left" Width="78" /> 
                                            <TextBox Name="txtCompletedPercentage" Width="70" Height="25" Grid.Column="3" Grid.Row="1" Margin="200,4,0,20" Text="{Binding percentageCompleted}" HorizontalAlignment="Left"/> 
                                        </Grid> 
                                    </DataTemplate> 
                                </telerik:RadGridView.RowDetailsTemplate> 
                            </telerik:RadGridView> 
                        </ControlTemplate> 
                    </Setter.Value> 
                </Setter> 
            </Style> 
        </Grid.Resources> 
        <telerik:RadGridView x:Name="radGridView1" RowDetailsVisibilityMode="VisibleWhenSelected" Height="435" Margin="3,76,12,12" Width="990" /> 
        

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 19 Dec 2009, 11:26 AM
Hi Shanthi Gangatharan,

Please find the attached sample project, showing you an example of how to bind a RadDatePicker, that is placed in RowDetailsTemplate.

Kind regards,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
shadhan
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or