如何使用默认值Now填充RadDateTimePicker:
<FooterTemplate>
<telerik:RadDateTimePicker Width="150px" ID="txt_QualityInspectorDateTimeFooter" runat="server" />
</FooterTemplate>
答案 0 :(得分:0)
检查此链接: DateTimePicker
txt_QualityInspectorDateTimeFooter.radDateTimePicker1.Value = DateTime.Now;
答案 1 :(得分:0)
我找到了正确的解决方案:
GridViewRow gridStoppageFooterRow = gvw_InspectionMainProcess.FooterRow;
RadDateTimePicker txt_LineInchargeDateTime = gridStoppageFooterRow.FindControl("txt_LineInchargeDateTimeFooter") as RadDateTimePicker;
txt_LineInchargeDateTime.SelectedDate = DateTime.Now;