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

How To Add RadDatePicker to RadGridView Footer

4 Answers 103 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Prashu
Top achievements
Rank 1
Prashu asked on 21 Aug 2013, 09:14 AM
Hi

I'm using RadGridview with 3 Columns for those three columns i want to add RadDatePicker  with current Date at the footer of Radgridview 

How to do it plz help me


thanks in advance

4 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 23 Aug 2013, 10:54 AM
Hi Pranavi,

Generally, GridViewColumn's footer is of type object. So, there is no problem to add a RadDatePicker to it.

I would suggest you to check this help article for a reference.

Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Prashu
Top achievements
Rank 1
answered on 27 Aug 2013, 07:00 AM
Hi Yoan

 I did Like this 
 <TelerikGrid:GridViewDataColumn  Header="Qty1" MinWidth="100" Width="110"  TextAlignment="Right" DataMemberBinding="{Binding Qty1, Mode=TwoWay}" DataFormatString="{}{0:N2}"  >
       <TelerikGrid:GridViewDataColumn.Footer>
               <Grid>
                              <Grid.RowDefinitions>
                                <RowDefinition Height="20"/>
                                 <RowDefinition Height="20"/>
                                 </Grid.RowDefinitions>
 <telerikInput:RadDatePicker x:Name="dt1" HorizontalAlignment="Center"  SelectedDate="{Binding datTime, Mode=TwoWay}" Margin="11,0,0,0" />
<CheckBox  Height="16" Name="checkBox1"  IsChecked="false" Grid.Row="1" HorizontalAlignment="Center" BorderThickness="0" BorderBrush="White" Background="Transparent" IsEnabled="True" Visibility="Visible"/>
                              </Grid>
                                                     
</TelerikGrid:GridViewDataColumn.Footer>
</TelerikGrid:GridViewDataColumn>

But RadDatePicker is not binding with Date  empty is showing ... i want to display the current Date
0
Accepted
Yoan
Telerik team
answered on 27 Aug 2013, 11:02 AM
Hello Pranavi,

You can expose your ViewModel as a resource and bind the property as follows:

<UserControl.Resources>
        <my:MyViewModel x:Key="MyViewModel"/>
</UserControl.Resources>
      .
      .
      .
 
<TelerikGrid:GridViewDataColumn  Header="Qty1" MinWidth="100" Width="110"  TextAlignment="Right" DataMemberBinding="{Binding Qty1, Mode=TwoWay}" DataFormatString="{}{0:N2}"  >
       <TelerikGrid:GridViewDataColumn.Footer>
               <Grid>
                              <Grid.RowDefinitions>
                                <RowDefinition Height="20"/>
                                 <RowDefinition Height="20"/>
                                 </Grid.RowDefinitions>
 <telerikInput:RadDatePicker x:Name="dt1" HorizontalAlignment="Center"  SelectedDate="{Binding datTime, Mode=TwoWay, Source={StaticResource MyViewModel}}" Margin="11,0,0,0" />
<CheckBox  Height="16" Name="checkBox1"  IsChecked="false" Grid.Row="1" HorizontalAlignment="Center" BorderThickness="0" BorderBrush="White" Background="Transparent" IsEnabled="True" Visibility="Visible"/>
                              </Grid>
                                                      
</TelerikGrid:GridViewDataColumn.Footer>
</TelerikGrid:GridViewDataColumn>


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Prashu
Top achievements
Rank 1
answered on 28 Aug 2013, 11:37 AM
Hi


How to put increase Footer Row Height .. in footer row i want again two rows so that i need to increase height of the footer 

how to implement

Tags
DatePicker
Asked by
Prashu
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Prashu
Top achievements
Rank 1
Share this question
or