How To Add RadDatePicker to RadGridView Footer

5 posts, 1 answers
  1. Prashu
    Prashu avatar
    17 posts
    Member since:
    May 2013

    Posted 21 Aug 2013 Link to this post

    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
  2. Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 23 Aug 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Prashu
    Prashu avatar
    17 posts
    Member since:
    May 2013

    Posted 27 Aug 2013 Link to this post

    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
  5. Answer
    Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 27 Aug 2013 Link to this post

    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 >>
  6. Prashu
    Prashu avatar
    17 posts
    Member since:
    May 2013

    Posted 28 Aug 2013 Link to this post

    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

Back to Top
DevCraft banner