addRow(new_id,text,ind)adds row to the specified position
Object: dhtmlXGridObjectTopic(s): rows control;
File required: dhtmlxGrid.js
new_id - id for new row text - Array of values or String(with delimiter as in delimiter parameter) [ind] - index of row (0 by default) Returns: new row dom objectattachToObject(obj)attach this grid to some object in DOM
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
obj - object to attach to cells(row_id,col)gets dhtmlXGridCellObject object (if no arguments then gets dhtmlXGridCellObject object of currently selected cell)
Object: dhtmlXGridObjectTopic(s): cells controll;
File required: dhtmlxGrid.js
row_id - row id col - column index Returns: dhtmlXGridCellObject object (see its methods below)cells2(row_index,col)gets dhtmlXGridCellObject object
Object: dhtmlXGridObjectTopic(s): cells controll;
File required: dhtmlxGrid.js
row_index - row index col - column index Returns: dhtmlXGridCellObject object (see its methods below)clear()clears combobox
Object: dhtmlXGridComboObjectFile required: dhtmlxGridCell.js
clearAll()deletes all rows in grid
Object: dhtmlXGridObjectTopic(s): data manipulation;
overal grid control;
treegrid;
File required: dhtmlxGrid.js
clearSelection()removes selection from the grid
Object: dhtmlXGridObjectTopic(s): selection control;
treegrid;
File required: dhtmlxGrid.js
copyRowContent(from_row_id, to_row_id)copies row content to another existing row
Object: dhtmlXGridObjectTopic(s): rows control;
data manipulation;
File required: dhtmlxGrid.js
from_row_id - id of the row to copy content from to_row_id - id of the row to copy content to deleteRow(row_id)deletes row
Object: dhtmlXGridObjectTopic(s): rows control;
treegrid;
File required: dhtmlxGrid.js
row_id - id of row to delete deleteSelectedItem()deletes selected row(s)
Object: dhtmlXGridObjectTopic(s): rows control;
File required: dhtmlxGrid.js
doDynScroll(fl)dynamicaly scrolls grid content.
Object: dhtmlXGridObjectTopic(s): initialization;
appearence control;
overal grid control;
treegrid;
File required: dhtmlxGrid.js
fl - if no fl - initializes dynamic scroll, if 'up' - scroll page up, if 'dn' - scrolls page down editCell()creates Editor object and switch cell to edit mode if allowed
Object: dhtmlXGridObjectTopic(s): cells controll;
File required: dhtmlxGrid.js
editStop()gets value from editor(if presents) to cell and closes editor
Object: dhtmlXGridObjectTopic(s): cells controll;
File required: dhtmlxGrid.js
enableBuffering(bufferSize)enables buffering in content rendering. Using this you decrease the grid loading time.
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
enableMultiline(state)set multiline rows support to enabled or disabled state
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
state - true or false enableMultiselect(state)set multiselect mode to enabled or disabled state
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
state - true or false get(key)gets value corresponding to the given key
Object: dhtmlXGridComboObjectFile required: dhtmlxGridCell.js
key - object to use as a key (should be a string in the case of combobox) Returns: value correspond. to given key or null if no such keygetAllItemIds(separator)gets a list of all row ids in grid
Object: dhtmlXGridObjectTopic(s): rows control;
overal grid control;
File required: dhtmlxGrid.js
separator - delimiter to use in list Returns: list of all row ids in gridgetBgColor()determ. cell's background color
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: cell's background color
getBgColor()determ. cell's background color
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: cell's background color
getColIndexById(id)gets column index by column id
Object: dhtmlXGridObjectTopic(s): colums control;
File required: dhtmlxGrid.js
id - column id Returns: index of the columngetColumnCount()gets number of columns in grid
Object: dhtmlXGridObjectTopic(s): colums control;
overal grid control;
File required: dhtmlxGrid.jsReturns: number of columns in grid
getColumnId(cin)gets column id of column specified by index
Object: dhtmlXGridObjectTopic(s): colums control;
File required: dhtmlxGrid.js
cin - column index Returns: column idgetColWidth(ind)gets width of specified column in pixels
Object: dhtmlXGridObjectTopic(s): colums control;
overal grid control;
File required: dhtmlxGrid.js
ind - column index Returns: column width in pixelsgetCombo(col_ind)gets Combo object of specified column
Object: dhtmlXGridObjectTopic(s): colums control;
cells controll;
File required: dhtmlxGrid.js
col_ind - index of the column to get combo object for getFont()determ. font style if it was set
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: font name only if it was set for the cell
getFont()determ. font style if it was set
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: font name only if it was set for the cell
getHorAlign()determines horisontal align od the cell
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: horisontal align of cell content
getHorAlign()determines horisontal align od the cell
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: horisontal align of cell content
getKeys()gets array of all available keys present in combobox
Object: dhtmlXGridComboObjectFile required: dhtmlxGridCell.jsReturns: array of all available keys
getRowId(ind)gets row id by index
Object: dhtmlXGridObjectTopic(s): rows control;
File required: dhtmlxGrid.js
ind - row index Returns: row id or null if there is no row with specified indexgetRowIndex(row_id)gets row index by id (grid only)
Object: dhtmlXGridObjectTopic(s): rows control;
File required: dhtmlxGrid.js
row_id - row id Returns: row index or -1 if there is no row with specified idgetRowsNum()gets number of rows in grid
Object: dhtmlXGridObjectTopic(s): rows control;
overal grid control;
File required: dhtmlxGrid.jsReturns: number of rows in grid
getSelectedCellIndex()gets index of selected cell
Object: dhtmlXGridObjectTopic(s): selection control;
cells controll;
File required: dhtmlxGrid.jsReturns: index of selected cell or -1 if there is no selected sell
getSelectedId()gets selected row id
Object: dhtmlXGridObjectTopic(s): selection control;
rows control;
treegrid;
File required: dhtmlxGrid.jsReturns: id of selected row (list of ids with default delimiter) or null if non row selected
getTextColor()determ. cell's text color
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: cell's text color
getTextColor()determ. cell's text color
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: cell's text color
getUserData(row_id,name)gets user Data
Object: dhtmlXGridObjectTopic(s): rows control;
data manipulation;
File required: dhtmlxGrid.js
row_id - row id. if empty then user data is for grid (not row) name - name of user data Returns: value of user datagetValue()gets Value of cell
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
getValue()gets Value of cell
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
getWidth()gets width of the cell in pixel
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: width of the cell in pixels
getWidth()gets width of the cell in pixel
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: width of the cell in pixels
init(fl)initialize grid
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
fl - if to parse on page xml dataisland isCheckbox()determines whether first child of the cell is checkbox or radio
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: true if first child of the cell is input element of type radio or checkbox
isCheckbox()determines whether first child of the cell is checkbox or radio
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: true if first child of the cell is input element of type radio or checkbox
isChecked()determines whether radio or checkbox inside is checked
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: true if first child of the cell is checked
isChecked()determines whether radio or checkbox inside is checked
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: true if first child of the cell is checked
isDisabled()determines whether cell content (radio,checkbox) is disabled
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: true if first child of the cell is disabled
isDisabled()determines whether cell content (radio,checkbox) is disabled
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: true if first child of the cell is disabled
isItemExists(row_id)determines if row with specified id exists
Object: dhtmlXGridObjectTopic(s): rows control;
overal grid control;
File required: dhtmlxGrid.js
row_id - row id Returns: true if exists, false otherwisemoveRowDown(row_id)moves row one position down if possible
Object: dhtmlXGridObjectTopic(s): rows control;
File required: dhtmlxGrid.js
row_id - row id moveRowUp(row_id)moves row one position up if possible
Object: dhtmlXGridObjectTopic(s): rows control;
File required: dhtmlxGrid.js
row_id - row id parseXML(xml,startIndex)populate grid with data from xml file (if passed parameter contains '.') or island
Object: dhtmlXGridObjectTopic(s): rows control;
data manipulation;
File required: dhtmlxGrid.js
[xml] - xml island will be found by grid id (id_xml) if no file or island id is specified. This also can be ready-to-use XML object [startIndex] - index of row in grid to start insertion from put(key,value)puts new combination of key and value into combobox
Object: dhtmlXGridComboObjectFile required: dhtmlxGridCell.js
key - object to use as a key (should be a string in the case of combobox) value - object value of combobox line remove(key)remove pair of key-value from combobox with given key
Object: dhtmlXGridComboObjectFile required: dhtmlxGridCell.js
key - object to use as a key selectCell(r,cInd,fl)set selection to specified row-cell
Object: dhtmlXGridObjectTopic(s): selection control;
cells controll;
File required: dhtmlxGrid.js
r - row object or row index cInd - cell index [fl] - true if to call onRowSelect function selectRow(r,fl)selects row (and first cell of it)
Object: dhtmlXGridObjectTopic(s): selection control;
rows control;
File required: dhtmlxGrid.js
r - row index or row object fl - if true, then call function on select setBgColor(val)sets background color to the cell
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - color value (name or hex) setBgColor(val)sets background color to the cell
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - color value (name or hex) setChecked(fl)checks checkbox or radion
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
fl - true or false setChecked(fl)checks checkbox or radion
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
fl - true or false setColAlign(alStr)set align of columns
Object: dhtmlXGridObjectTopic(s): initialization;
colums control;
File required: dhtmlxGrid.js
alStr - align string with delimiters setColSorting(sortStr)set column sort types (avaialble: str, int, date, na)
Object: dhtmlXGridObjectTopic(s): initialization;
colums control;
cells controll;
File required: dhtmlxGrid.js
sortStr - sort codes list with default delimiter setColTypes(typeStr)set column types
Object: dhtmlXGridObjectTopic(s): initialization;
colums control;
cells controll;
File required: dhtmlxGrid.js
typeStr - type codes list with default delimiter setColumnColor(clr)colorize columns.
Object: dhtmlXGridObjectTopic(s): colums control;
appearence control;
File required: dhtmlxGrid.js
clr - colors list setColumnIds(ids)sets ids to every column. Can be used then to retreive the index of the desired colum
Object: dhtmlXGridObjectTopic(s): colums control;
File required: dhtmlxGrid.js
[ids] - "," delimitered list of ids, or empty if to use values set earlier setDelimiter(delim)set default delimiter
Object: dhtmlXGridObjectTopic(s): initialization;
File required: dhtmlxGrid.js
delim - delimiter as string setDisabled(fl)disables radio or checkbox
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
fl - true or false setDisabled(fl)disables radio or checkbox
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
fl - true or false setEditable(fl)manage editibility of the grid
Object: dhtmlXGridObjectTopic(s): overal grid control;
File required: dhtmlxGrid.js
[fl] - set not editable if FALSE, set editable otherwise setFont(val)sets font family to the cell
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - string in format: Arial-bold(italic,bolditalic)-12px setFont(val)sets font family to the cell
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - string in format: Arial-bold(italic,bolditalic)-12px setHeader(hdrStr)set header label and default params for new headers
Object: dhtmlXGridObjectTopic(s): initialization;
colums control;
File required: dhtmlxGrid.js
hdrStr - header string with delimiters setHeaderCol(col,label)sets new column header label
Object: dhtmlXGridObjectTopic(s): colums control;
appearence control;
File required: dhtmlxGrid.js
col - header column index label - new label for the cpecified header's column setHorAlign(val)sets horisontal align to the cell
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - value in single-letter or full format(exmp: r or right) setHorAlign(val)sets horisontal align to the cell
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - value in single-letter or full format(exmp: r or right) setImagePath(path)set path to grid internal images (sort direction, any images used in editors, checkbox, radiobutton)
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
path - path to images folder with closing "/" setInitWidths(wp)set width of columns in pixels
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
wp - width in pixels setInitWidthsP(wp)set width of columns in percents
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
wp - width in percents setMultiLine(fl)sets grid to multiline row support (call before init)
Object: dhtmlXGridObjectTopic(s): initialization;
rows control;
File required: dhtmlxGrid.js
fl - true to set multiline support setMultiselect(fl)allow multiselection
Object: dhtmlXGridObjectTopic(s): initialization;
rows control;
overal grid control;
File required: dhtmlxGrid.js
fl - false/true setNoHeader(fl)use to create grid with no header
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
fl - true to use no header in the grid setOnCheckHandler(func)set function called when checkbox or radiobutton was clicked
Event Name: onCheck Event raises after state was changed.ID or row index of cell state of checkbox/radiobutton Object: dhtmlXGridObjectTopic(s): event handlers;
File required: dhtmlxGrid.jsfunc - event handling function (or its name) setOnEditCellHandler(func)set function called when cell editted
Event Name: onEditCell Event raises 1-3 times depending on cell editibality.stage of editting (0-before start[can be canceled if returns false],1-editor opened,2-editor closed) ID or row index of cell Object: dhtmlXGridObjectTopic(s): event handlers;
File required: dhtmlxGrid.jsfunc - event handling function (or its name) setOnEnterPressedHandler(func)set function called when user press Enter
Event Name: onEnterPressed Event raised immideatly after Enter pressed.ID or row index of cell Object: dhtmlXGridObjectTopic(s): event handlers;
File required: dhtmlxGrid.jsfunc - event handling function (or its name) setOnRowSelectHandler(func)set function called when row selected
Event Name: onRowSelect Event raised immideatly after row was clicked.ID of clicked row Object: dhtmlXGridObjectTopic(s): event handlers;
File required: dhtmlxGrid.jsfunc - event handling function (or its name) setRowId(ind,row_id)sets new id for row by its index
Object: dhtmlXGridObjectTopic(s): rows control;
File required: dhtmlxGrid.js
ind - row index row_id - new row id setRowTextBold(row_id)sets row text BOLD
Object: dhtmlXGridObjectTopic(s): rows control;
appearence control;
File required: dhtmlxGrid.js
row_id - row id setRowTextNormal(row_id)sets row text NORMAL
Object: dhtmlXGridObjectTopic(s): rows control;
appearence control;
File required: dhtmlxGrid.js
row_id - row id setRowTextStyle(row_id,styleString)sets style to row
Object: dhtmlXGridObjectTopic(s): rows control;
appearence control;
File required: dhtmlxGrid.js
row_id - row id styleString - style string in common format (exmpl: "color:red;border:1px solid gray;") setSelectedRow(row_id, multiFL,show,call)selects row
Object: dhtmlXGridObjectTopic(s): selection control;
rows control;
File required: dhtmlxGrid.js
row_id - row id multiFL - VOID. select multiple rows show - VOID. scroll row to view call - true to call function on select setStyle(ss_header,ss_grid,ss_selCell,ss_selRow)modify default style of grid and its elements. Call before or after Init
Object: dhtmlXGridObjectTopic(s): initialization;
appearence control;
File required: dhtmlxGrid.js
ss_header - style def. expression for header ss_grid - style def. expression for grid cells ss_selCell - style def. expression for selected cell ss_selRow - style def. expression for selected Row setTextColor(val)sets text color to the cell
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - color value (name or hex) setTextColor(val)sets text color to the cell
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - color value (name or hex) setUserData(row_id,name,value)sets user Data
Object: dhtmlXGridObjectTopic(s): rows control;
data manipulation;
File required: dhtmlxGrid.js
row_id - row id. if empty then user data is for grid (not row) name - name of user data value - value of user data setValue(val)sets value to the cell
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - new value setValue(val)sets value to the cell
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.js
val - new value setXMLAutoLoading(filePath,bufferSize)enables the possibility to load content from server when already loaded content was rendered. Using this you decrease the grid loading time for extremely big amounts of data.
Object: dhtmlXGridObjectTopic(s): initialization;
overal grid control;
File required: dhtmlxGrid.js
showRow(rowID)scrolls row to the visible area
Object: dhtmlXGridObjectTopic(s): rows control;
overal grid control;
File required: dhtmlxGrid.js
rowID - row id size()gets the size of combobox
Object: dhtmlXGridComboObjectFile required: dhtmlxGridCell.jsReturns: current size of combobox
sortRows(col,type,order)sorts specified column
Object: dhtmlXGridObjectTopic(s): rows control;
colums control;
data manipulation;
treegrid;
File required: dhtmlxGrid.js
col - column index type - str.int.date order - asc.desc wasChanged()determines whether cell value was changed
Object: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: true if cell value was changed, otherwise - false
wasChanged()determines whether cell value was changed
Object: eXcellNested from: dhtmlXGridCellObjectFile required: dhtmlxGridCell.jsReturns: true if cell value was changed, otherwise - false