4 Answers, 1 is accepted
0
Hi Pranavi,
Generally, GridViewColumn's footer is of type object. So, there is no problem to add a RadDatePicker to it.
Yoan
Telerik
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.
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 >>
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
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
Hello Pranavi,
Regards,
Yoan
Telerik
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 >>
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
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