1

如何从DateFieldExt.net 中删除/隐藏日历图标?我只需要通过直接编辑文本来输入。

DateField dtPlanDate = new DateField {
    ID = "dtPlanDate", 
    FieldLabel = Strings.PlanDate,
    LabelAlign = LabelAlign.Top,
    ToolTip = "Enter Date",
    Value = DateTime.Today,
    MinDate = DateTime.Today,
    MaxDate = DateTime.Today.AddDays(1),
    StartDay = (int)DayOfWeek.Monday,
};
4

1 回答 1

1

简单的 !!!

添加一个属性“HideTrigger”并将其设置为“true”

DateField dtPlanDate = new DateField { 
 ID = "dtPlanDate",
 FieldLabel = Strings.PlanDate,
 LabelAlign = LabelAlign.Top,
 ToolTip = "Enter Date",
 Value = DateTime.Today, 
 MinDate = DateTime.Today,
 MaxDate = DateTime.Today.AddDays(1), 
 StartDay = (int)DayOfWeek.Monday,
 HideTrigger=true
}; 

谢谢

于 2012-06-26T07:03:54.397 回答