99 строки
13 KiB
JavaScript
99 строки
13 KiB
JavaScript
(function () {
|
|
setViewstate(ej.Accordion, ["cssClass", "enabled", "enableRTL", "selectedItems", "selectedItemIndex"]);
|
|
setViewstate(ej.Autocomplete, ["cssClass", "enabled", "enableRTL", "readOnly", "value", "selectValueByKey"]);
|
|
setViewstate(ej.Button, ["enabled", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.Captcha, ["characterSet", "maximumLength", "caseSensitive", "autoValidate", "successMessage", "errorMessage", "encryptedCode", "isValid", "enableAudio", "enableRefreshImage", "enableRTL", "audioUrl"]);
|
|
setViewstate(ej.CheckBox, ["checked", "checkState", "enabled", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.ColorPicker, ["value", "cssClass", "enabled", "showRecentColors", "opacityValue", "toolIcon", "columns", "palette", "modelType"]);
|
|
setViewstate(ej.ComboBox, ["value", "text", "enabled", "readonly", "cssClass", "index", "enableRtl"]);
|
|
setViewstate(ej.CurrencyTextbox, ["cssClass", "locale", "enabled", "enableRTL", "readOnly", "value"]);
|
|
setViewstate(ej.DatePicker, ["value", "dateFormat", "minDate", "maxDate", "locale", "enabled", "readOnly", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.DateRangePicker, ["value", "dateFormat", "timeFormat", "locale","enabled", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.DateTimePicker, ["value", "minDateTime", "dateTimeFormat", "maxDateTime", "locale", "enabled", "readOnly", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.Dialog, ["enabled", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.DropDownList, ["value", "text", "enabled", "readOnly", "cssClass", "enableRTL", "selectedIndex", "selectedIndices"]);
|
|
setViewstate(ej.FileExplorer, ["allowMultiSelection", "showToolbar", "showCheckbox", "showRoundedCorner", "showTreeview", "showContextMenu", "showFooter", "selectedFolder", "selectedItems", "fileTypes", "locale", "layout", "enableRTL", "cssClass", "gridSettings", "filterSettings"]);
|
|
setViewstate(ej.GroupButton, ["cssClass", "enabled", "enableRTL", "orientation", "selectedItemIndex"]);
|
|
setViewstate(ej.MaskEdit, ["value", "maskFormat", "inputMode", "enabled", "readOnly", "cssClass" ]);
|
|
setViewstate(ej.Menu, ["animationType", "enabled", "cssClass", "enableRTL", "orientation"]);
|
|
setViewstate(ej.NumericTextbox, ["cssClass", "locale", "enabled", "enableRTL", "readOnly", "value"]);
|
|
setViewstate(ej.Pager, ["enabled", "enableRTL","currentPage","pageSize"]);
|
|
setViewstate(ej.PercentageTextbox, ["cssClass", "locale", "enabled", "enableRTL", "readOnly", "value"]);
|
|
setViewstate(ej.ProgressBar, ["value", "text", "percentage", "minValue", "maxValue", "enabled", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.RadioButton, ["checked", "enabled", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.Rating, ["value", "minValue", "maxValue", "readOnly", "cssClass"]);
|
|
setViewstate(ej.RadialSlider, ["radius", "ticks", "value", "enableAnimation", "autoOpen"]);
|
|
setViewstate(ej.RTE, ["cssClass", "locale", "enabled", "enableRTL", "value"]);
|
|
setViewstate(ej.Slider, ["value", "values", "minValue", "maxValue", "incrementStep", "readOnly", "enabled", "enableRTL", "sliderType", "cssClass"]);
|
|
setViewstate(ej.SplitButton, ["text", "cssClass", "enableRTL", "enabled"]);
|
|
setViewstate(ej.Tab, ["selectedItemIndex", "enabled", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.Ribbon,["selectedItemIndex"]);
|
|
setViewstate(ej.ListBox, ["selectedItemIndex", "selectedItemlist", "checkedItemlist", "selectedIndices", "checkedIndices", "selectedIndex", "cssClass", "enabled", "enableRTL", "selectedItems", "checkedItems", "text", "value" ]);
|
|
setViewstate(ej.ListView, ["showHeaderBackButton", "enableCache", "enableFiltering","headerBackButtonText","transition"]);
|
|
setViewstate(ej.Tile, ["enabled", "showText", "maxValue","minValue","value","text"]);
|
|
setViewstate(ej.RadialMenu, ["enableAnimation", "autoOpen"]);
|
|
setViewstate(ej.NavigationDrawer, ["enableListView"]);
|
|
setViewstate(ej.TagCloud, ["enableRTL", "cssClass", "titleText", "titleImage", "format"]);
|
|
setViewstate(ej.TimePicker, ["value", "minTime", "maxTime", "locale", "enabled", "readOnly", "cssClass", "enableRTL"]);
|
|
setViewstate(ej.ToggleButton, ["enabled", "cssClass", "enableRTL", "toggleState", "activePrefixIcon",
|
|
"activeSuffixIcon", "activeText", "defaultText", "defaultPrefixIcon", "defaultSuffixIcon"]);
|
|
setViewstate(ej.Toolbar, ["enabled", "cssClass", "enableRTL", "orientation", "hide"]);
|
|
setViewstate(ej.TreeView, ["cssClass", "enabled", "enableRTL", "expandedNodes", "checkedNodes", "selectedNode"]);
|
|
setViewstate(ej.Uploadbox, ["enabled", "multipleFilesSelection", "enableRTL", "cssClass", "showFileDetails"]);
|
|
setViewstate(ej.PivotGrid, ["currentReport"]);
|
|
setViewstate(ej.PivotChart, ["currentReport"]);
|
|
setViewstate(ej.PivotClient, ["currentReport"]);
|
|
setViewstate(ej.Schedule, ["currentDate", "currentView", "endHour", "startHour", "orientation", "timeMode", "views", "dateFormat", "timeZone", "highlightBusinessHours", "enablePersistence",
|
|
"showQuickWindow", "businessStartHour", "businessEndHour", "cellHeight", "cellWidth", "minDate", "maxDate", "locale", "readOnly", "enableRTL", "enableAppointmentNavigation",
|
|
"appointmentTemplateId", "resourceHeaderTemplateId", "allowDragDrop", "enableAppointmentResize", "showCurrentTimeIndicator", "reminderSettings", "contextMenuSettings", "group",
|
|
"allowKeyboardNavigation", "query", "renderDates", "categorizeSettings", "enableLoadOnDemand", "showAllDayRow", "isResponsive", "showHeaderBar", "agendaViewSettings", "firstDayOfWeek", "workWeek", "showDeleteConfirmationDialog", "showNextPrevMonth"]);
|
|
setViewstate(ej.Grid, ["allowFiltering", "allowGrouping", "allowKeyboardNavigation", "allowMultiSorting", "enableLoadOnDemand", "allowPaging", "allowReordering", "allowTextWrap", "allowCellMerging",
|
|
"allowResizing", "allowScrolling", "allowSearching", "allowSelection", "allowSorting", "showSummary",
|
|
"cssClass", "detailsTemplate", "enableAltRow", "enableHeaderHover", "enablePersistence", "enableRTL", "enableRowHover", "enableTouch", "locale",
|
|
"query", "rowTemplate", "selectedRowIndex", "selectedRowIndices", "selectionType", "editSettings", "filterSettings", "groupSettings", "pageSettings",
|
|
"scrollSettings", "sortSettings", "toolbarSettings", "columns", "searchSettings", "_groupingCollapsed", "_isHeightResponsive", "_checkSelectedRowsIndexes", "allowRowDragAndDrop", "textWrapSettings", "rowDropSettings", "resizeSettings"]);
|
|
setViewstate(ej.Kanban, ["allowFiltering", "allowKeyboardNavigation", "allowScrolling", "allowSearching", "allowSelection","cssClass","allowHover", "allowPrinting", "enableRTL", "keyField", "allowTitle","enableTouch", "locale",
|
|
"query", "allowDragAndDrop", "allowPrinting", "selectionType", "editSettings", "filterSettings", "cardSettings", "fields",
|
|
"scrollSettings", "sortSettings", "customToolbarItems", "columns", "searchSettings", "_collapsedCards", "tooltipSettings", "enableTotalCount","allowToggleColumn"]);
|
|
setViewstate(ej.Gantt, ["columns","toolbarSettings","leftTaskLabelMapping", "rightTaskLabelMapping", "leftTaskLabelTemplate", "resourceUnitMapping", "selectionType", "selectionMode", "workUnit", "taskType", "cellTooltipTemplate", "rightTaskLabelTemplate",
|
|
"showColumnOptions", "columnDialogFields", "enableWBS", "enableWBSPredecessor", "enableResize", "isResponsive", "sortSettings","taskSchedulingModeMapping","taskSchedulingMode","validateManualTasksOnLinking",
|
|
"allowSorting", "allowColumnResize", "dataSource", "allowSelection", "highlightWeekends", "highlightNonWorkingTime", "enableProgressBarResizing",
|
|
"includeWeekend", "showTaskNames", "showGridCellTooltip", "showGridExpandCellTooltip", "showProgressStatus", "showResourceNames", "enableTaskbarDragTooltip",
|
|
"enableTaskbarTooltip", "allowKeyboardNavigation", "allowMultiSorting", "enableAltRow", "enableVirtualization", "allowGanttChartEditing",
|
|
"renderBaseline", "enableContextMenu", "showColumnChooser", "taskIdMapping", "parentTaskIdMapping", "taskNameMapping", "startDateMapping",
|
|
"endDateMapping", "baselineStartDateMapping", "baselineEndDateMapping", "childMapping", "durationMapping", "milestoneMapping",
|
|
"progressMapping", "predecessorMapping", "resourceInfoMapping", "scheduleStartDate", "scheduleEndDate", "taskbarBackground", "progressbarBackground",
|
|
"connectorLineBackground", "parentTaskbarBackground", "parentProgressbarBackground", "cssClass", "locale", "taskbarTooltipTemplate",
|
|
"progressbarTooltipTemplate", "taskbarTooltipTemplateId", "dateFormat", "resourceIdMapping", "resourceNameMapping", "progressbarTooltipTemplateId",
|
|
"taskbarEditingTooltipTemplateId", "taskbarEditingTooltipTemplate", "weekendBackground", "nonWorkingBackground", "baselineColor", "splitterPosition", "resources", "holidays",
|
|
"stripLines", "editDialogFields", "rowHeight", "connectorlineWidth", "progressbarHeight", "selectedRowIndex", "treeColumnIndex", "workingTimeScale",
|
|
"roundOffDayworkingTime", "durationUnit", "enableCollapseAll", "query", "enableResize", "splitterSettings", "enablePredecessorValidation", "isResponsive", "taskbarTemplate", "parentTaskbarTemplate", "milestoneTemplate", "workMapping", "taskbarHeight", "searchSettings", "criticalTask", "toolbarSettings", "workWeek",
|
|
"groupIdMapping", "groupCollection", "groupNameMapping", "resourceCollectionMapping", "taskCollectionMapping", "viewType", "filterSettings", "enableSerialNumber", "predecessorTooltipTemplate", "allowUnscheduledTask"]);
|
|
setViewstate(ej.TreeGrid, ["allowSorting", "allowMultiSorting", "allowColumnResize", "allowColumnReordering", "selectionType", "selectionMode", "allowPaging", "headerTextOverflow", "showColumnOptions", "columnDialogFields", "allowKeyboardNavigation", "allowFiltering", "allowSelection",
|
|
"dataSource", "enableResize", "filterBarMode", "query", "selectionType", "showGridCellTooltip", "showGridExpandCellTooltip",
|
|
"enableAltRow", "enableVirtualization", "showColumnChooser", "idMapping", "parentIdMapping", "childMapping",
|
|
"cssClass", "locale", "rowHeight", "selectedRowIndex", "treeColumnIndex", "enableCollapseAll", "columns", "sortSettings",
|
|
"toolbarSettings", "contextMenuSettings", "editSettings", "filterSettings", "selectionSettings", "pageSettings", "columnResizeSettings", "showSummaryRow", "showTotalSummary", "totalSummaryHeight", "collapsibleTotalSummary", "isResponsive", "allowTextWrap", "hasChildMapping", "enableLoadOnDemand","allowSearching","searchSettings"]);
|
|
if (ej.datavisualization) {
|
|
setViewstate(ej.datavisualization.Chart, ["series.visibility", "size"]);
|
|
setViewstate(ej.datavisualization.Map, ["enablePan", "enableAnimation", "enableResize"]);
|
|
setViewstate(ej.datavisualization.TreeMap, ["highlightOnSelection", "enableResize"]);
|
|
setViewstate(ej.datavisualization.CircularGauge, ["scales"]);
|
|
setViewstate(ej.datavisualization.LinearGauge, ["scales"]);
|
|
setViewstate(ej.datavisualization.Diagram, ["nodes", "connectors", "width", "height", "labels"]);
|
|
|
|
}
|
|
setViewstate(ej.Spreadsheet, ["allowAutoFill", "allowAutoSum", "allowCellFormatting", "allowCharts", "allowClipboard", "allowComments",
|
|
"allowConditionalFormats", "allowDataValidation", "allowDelete", "allowDragAndDrop", "allowEditing", "allowFiltering", "allowFormatAsTable",
|
|
"allowFormatPainter", "allowFormulaBar", "allowFreezing", "allowHyperlink", "allowImport", "allowInsert", "allowKeyboardNavigation", "allowLockCell",
|
|
"allowMerging", "allowPivotTable", "allowResizing", "allowSearching", "allowSelection", "allowSorting", "allowUndoRedo", "allowWrap", "autoFillSettings",
|
|
"apWidth", "chartSettings", "columnCount", "columnWidth", "cssClass", "enableContextMenu", "enablePersistence", "exportSettings", "formatSettings",
|
|
"importSettings", "locale", "nameManager", "pageSettings", "pageSize", "pictureSettings", "printSettings", "rowCount", "rowHeight", "scrollSettings",
|
|
"selectionSettings", "sheetCount", "showRibbon", "undoRedoStep", "userName"]);
|
|
})();
|
|
|
|
function setViewstate( namespace, viewstateData) {
|
|
if (namespace)
|
|
namespace.prototype._includeOnViewstate = viewstateData;
|
|
}
|