如何从DateField中删除日历图标

时间:2012-06-25 15:48:05

标签: ext.net

如何从Ext.net中的DateField删除/隐藏日历图标?我只需要直接编辑文本就需要输入。

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,
};

1 个答案:

答案 0 :(得分:0)

简单!!!

再添加一个属性“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
}; 

由于