http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/WebDateChooser_Object_CSOM.html
WebDateChooser CSOM 클라이언트단(Client-Side)에서의 매뉴얼
간단하게 disabled을 해보았다.
var chooser = igdrp_getComboById("WebDateChooser1");
chooser.setReadOnly(true);
이렇게 하면 읽기 전용이 된다.
WebDateChooser
Object that contains functions and member variables related to the WebDateChooser class on server. That object can be obtained by calling the igdrp_getComboById function and providing the ClientID or UniqueID as a parameter.
WebDateChooser Methods
addEventListener |
Adds event listener to keydown or blur events. // Example: var chooser = igdrp_getComboById("WebDateChooser1"); if(chooser == null) return; chooser.addEventListener("keydown", myListener, "myIdentifier"); //... function myListener(oChooser, oEvent, obj) { alert("DateChooser:" + oChooser.UniqueId + "key:" + oEvent.event.keyCode + " object:" + obj); } Parameters name
String. Name of event: keydown or blur. fRefFunction. Reference to function which processes event. objObject. Optional object which is passed as 3rd parameter in event listener. |
focus |
Sets focus to WebDateChooser. |
getAllowNull |
Checks if null date is allowed. Returns
Boolean. True if null is allowed. |
getAutoCloseUp |
Checks if calendar should be closed automatically. Returns
Boolean. Value for the AutoCloseUp property on server. |
getDropDownAlignment |
Gets alignment of drop-down calendar. Returns
Number. Value for the DropDownAlignment property on server. |
getMaxDate |
Gets maximum date. Returns
Date. Value for the MaxDate property on server. |
getMinDate |
Gets minimum date. Returns
Date. Value for the MinDate property on server. |
getNullDateLabel |
Gets value of text that is used to show null date. Returns
String. Value for the NullDateLabel property on server. |
getText |
Gets text displayed in date chooser. Returns
String. Value of text. |
getValue |
Gets date displayed in date chooser. Returns
Date. Value of date. |
getVisible |
Checks if control is visible. Returns
Boolean. True is control is visible. |
isDropDownVisible |
Checks if calendar is visible. Returns
Boolean. True if calendar is visible. |
isEditable |
Checks if date chooser is editable. Returns
Boolean. Value for the Editable property on server. |
isEnabled |
Checks if control is enabed. Returns
Boolean. Value for the Enabled property on server. |
isReadOnly |
Checks if control is read only. Returns
Boolean. Value for the ReadOnly property on server. |
removeEventListener |
Removes event listener which was added by addEventListener. Parameters name
String. Name of event: keydown or blur. fRefFunction. Reference to function. |
setAllowNull |
Allows null value. New value does not persist to server. Parameters value
Boolean. True - allow null date. |
setAutoCloseUp |
Enables automatic closing of calendar. New value persists to server. Parameters value
Boolean. Value for the AutoCloseUp property on server. |
setDropDownAlignment |
Sets alignment of drop down calendar. New value persists to server. Parameters value
Numeric. Value for the DropDownAlignment property on server. |
setDropDownVisible |
Shows of hides drop down calendar. Parameters value
Boolean. True - show calendar, false - hide. |
setEditable |
Enables or disables editing. New value persists to server. Parameters value
Boolean. Value for the Editable property on server. |
setEnabled |
Enables or disables control. New value persists to server. Parameters value
Boolean. Value for the Enabled property on server. |
setMaxDate |
Sets maximum date. New value persists to server. Parameters value
Date. Value for the MaxDate property on server. |
setMinDate |
Sets minimum date. New value persists to server. Parameters value
Date. Value for the MinDate property on server. |
setNullDateLabel |
Sets text that represents null date. New value does not persist to server. Parameters value
String. Value for null date. |
setReadOnly |
Allows to edit text. New value persists to server. Parameters value
Boolean. Value for the ReadOnly property on server. |
setText |
Sets text in control. Parameters value
String. New text in control. |
setValue |
Sets date in control. Parameters value
Date. New date in control. |
setVisible |
Shows or hides control. New value does not persist to server. Parameters show
Boolean. True - show control, false - hide. leftNumeric. Optional. The left edge of control in pixels. If value is not null, then absolute position attribute is set automatically. topNumeric. Optional. The top edge of control in pixels. widthNumeric. Optional. The width of control in pixels. heightNumeric. Optional. The height of control in pixels. |
WebDateChooser Properties
Calendar |
Object. Read only. Object that represents WebCalendar which is used as drop down. That object is documented for CSOM of WebCalendar. // Example: var chooser = igdrp_getComboById("WebDateChooser1"); if(chooser == null) return; window.alert("UniqueID of calendar:" + chooser.Calendar.uniqueId); |
Element |
Object. Read only. Reference to the main html element that renders WebDateChooser. // Example: var chooser = igdrp_getComboById("WebDateChooser1"); if(chooser == null) return; var realWidthOfChooser = chooser.Element.offsetWidth; |
Events |
Object. Read only. Object that contains list of ClientSideEvents function names that were set to WebDateChooser on server. |
ExpandEffects |
Object. Read only. Object that contains properties related to special effects supported by IE6 under Windows platform. |
Id |
String. Read only. Value of the internal ID used to identify this WebDateChooser among other objects located in igdrp_all. |
UniqueId |
String. Read only. Value of the UniqueID property on server. |