As per title, when I click to add a new row in my RadGridView, I would like my RadDatePicker column to auto display today's date rather than 1/1/0001.
Is there any way to do this? I've tried to set various properties at design time such as DisplayDate, DateTextTime, SelectedDate but all doesn't make a difference.
I would perhaps try to do it at code-behind rather than design time, but I have no idea how to access it.
Anyways here are my codes currently:
Is there any way to do this? I've tried to set various properties at design time such as DisplayDate, DateTextTime, SelectedDate but all doesn't make a difference.
I would perhaps try to do it at code-behind rather than design time, but I have no idea how to access it.
Anyways here are my codes currently:
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Path=SvcDate}"
UniqueName
=
"SvcDate"
TextWrapping
=
"Wrap"
Width
=
"100"
TextAlignment
=
"Center"
DataFormatString
=
"{}{0:ddMMyy}"
>
<
telerik:GridViewDataColumn.Header
>
<
TextBlock
Text
=
"Service Date"
TextAlignment
=
"Center"
/>
</
telerik:GridViewDataColumn.Header
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
telerik:RadDatePicker
SelectedValue
=
"{Binding Path=SvcDate}"
DateTimeWatermarkContent
=
"Service"
ErrorTooltipContent
=
"Unrecognised format. Use drop-down interface for input assistance."
Culture
=
"en-SG"
DisplayDateStart
=
"01/01/2014"
>
</
telerik:RadDatePicker
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
</
telerik:GridViewDataColumn
>