2012-06-25 48 views
1

如何從Ext.net中的DateField中刪除/隱藏日曆圖標?我只需要通過直接編輯文本來輸入。如何從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, 
}; 

回答

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

感謝