jqGrid
└─hgGridEdit
└─hgGridRender
public abstract class hgGridRender
extends hgGridEdit
| Field Summary | |
|---|---|
| string | The export to file to CSV |
| string | SCV separator |
| string | CSV string to replavce separator |
| boolean | Enable/disable the export to excel |
| string | The export to file to excel |
| type boolean If set to true add the inline navigator buttons for inline editing | |
| boolean | Enable/disable navigator in the grid. |
| string | The export to file to PDF |
| boolean | If set to true put the form add options as grid option so they can be used from other places |
| boolean | If set to true put the form delete options as grid option so they can be used from other places |
| boolean | If set to true put the form edit options as grid option so they can be used from other places |
| boolean | Enable/disable tollbar search. |
| Fields inherited from hiGrid\hgGridEdit | |
|---|---|
| add, decodeinput, del, edit, getLastInsert, mtype, serialKey, trans | |
| Fields inherited from hiGrid\jqGrid | |
|---|---|
| ExportCommand, SubgridCommand, cacheCount, customClass, customError, customFunc, dataType, datearray, debug, encoding, errorMessage, gSQLMaxRows, higridSC, jsonencode, logtofile, mongofields, mongointegers, oper, optimizeSearch, performcount, readFromXML, showError, table, version, xmlCDATA | |
| Method Summary | |
|---|---|
| array | Return the generated colModel |
| mixed | getGridOption(string key) Return a jqGrid option specified by the key, false if the option can not be found. |
| void | higridsGO(array aoptions) Set a grid option. |
| boolean | setUrl(string newurl) Set a editing url. |
| boolean | setSubGrid(string suburl, array subnames, array subwidth, array subalign, array subparams) Prepares a executuion of a simple subgrid Return false if no name options for the subgrid. |
| boolean | setSubGridGrid(string subgridurl, array subgridnames) Prepares a subgrid in the grid expecting any valid html content provieded via the $suggridurl |
| boolean | setSelect(string colname, mixed data, boolean formatter, boolean editing, boolean seraching, array defvals) Construct the select used in the grid. |
| void | setAutocomplete(string colname, string target, mixed data, array options, boolean editing, boolean seraching, bool searching) Construct autocompleter used in the grid. |
| void | setDatepicker(string colname, array options, boolean editing, boolean seraching, bool searching) Construct a pop up calender used in the grid. |
| bolean | setGridEvent(string event, string code) Set a valid grid event |
| boolean | higridsNO(string module, array aoptions) Set options in the navigator for the diffrent actions |
| boolean | setNavEvent(string module, string event, string code) Set a event in the navigator or in the diffrent modules add,edit,del,view, search |
| boolean | inlineNavOptions(string module, array aoptions) Set a options for inline editing in particulear module |
| boolean | inlineNavEvent(string module, string event, string code) Set a event for inline editing in particulear module |
| type | Return a array of the all events and options for the inline navigator |
| void | setFilterOptions(array aoptions) Set options for the tolbar filter when enabled |
| void | callGridMethod(string grid, string method, array aoptions) Construct a code for execution of valid grid method. |
| void | setJSCode(string code) Put a javascript arbitrary code after all things are created. |
| boolean | setColModel(array model, array params, array labels) Construct the column model of the grid. |
| boolean | higridsCP(mixed colname, array aproperties) Set a new property in the constructed colModel Return true on success. |
| boolean | addCol(array aproperties, string position) Add a column at the first or last position in the colModel and sets a certain properties to it |
| void | setButtonOptions(string exptype, array aoptions) Set a various options for the buttons on the pager. |
| mixed. | higridOP(string tblelement, string pager, boolean script, array summary, array params, boolean createtbl, boolean createpg, boolean echo) Main method which do allmost everthing for the grid. |
| Methods inherited from hiGrid\hgGridEdit | |
|---|---|
| checkPrimary, delete, editGrid, getFields, getLastInsertId, getPrimaryKeyId, insert, setAfterCrudAction, setBeforeCrudAction, setPrimaryKeyId, setSuccessMsg, setTable, update | |
| Methods inherited from hiGrid\jqGrid | |
|---|---|
| __construct, addUserData, buildSearch, debugout, execute, exportToCsv, exportToExcel, exportToPdf, getDbDate, getDbTime, getGridParams, getSqlElement, getStringForGroup, getUserDate, getUserTime, logQuery, parseSql, queryForObject, queryGrid, querySubGrid, rs2excel, rs2pdf, selectLimit, sendErrorHeader, setDbDate, setDbTime, setGridParams, setPdfOptions, setUserDate, setUserTime | |
public string $csvfile = 'higrid_export.csv'
The export to file to CSV
public string $csvsep = ';'
SCV separator
public string $csvsepreplace = ";"
CSV string to replavce separator
public boolean $export = true
Enable/disable the export to excel
public string $exportfile = 'higrid_export.xml'
The export to file to excel
public type boolean If set to true add the inline navigator buttons for inline editing $inlineNav = false
public boolean $navigator = false
Enable/disable navigator in the grid. Default false
public string $pdffile = 'higrid_export.pdf'
The export to file to PDF
public boolean $sharedAddOptions = false
If set to true put the form add options as grid option so they can be used from other places
public boolean $sharedDelOptions = false
If set to true put the form delete options as grid option so they can be used from other places
public boolean $sharedEditOptions = false
If set to true put the form edit options as grid option so they can be used from other places
public boolean $toolbarfilter = false
Enable/disable tollbar search. Default false
public array getColModel()
Return the generated colModel
public mixed getGridOption(string key)
Return a jqGrid option specified by the key, false if the option can not be found.
public void higridsGO(array aoptions)
Set a grid option. The method uses array with keys corresponding to the jqGrid options as described in jqGrid docs
public boolean setUrl(string newurl)
Set a editing url. Note that this set a url from where to obtain and/or edit data. Return false if runSetCommands is already runned (false)
public boolean setSubGrid(string suburl, array subnames, array subwidth, array subalign, array subparams)
Prepares a executuion of a simple subgrid Return false if no name options for the subgrid.
public boolean setSubGridGrid(string subgridurl, array subgridnames)
Prepares a subgrid in the grid expecting any valid html content provieded via the $suggridurl
public boolean setSelect(string colname, mixed data, boolean formatter, boolean editing, boolean seraching, array defvals)
Construct the select used in the grid. The select element can be used in the editing modules, in formatter or in search module
public void setAutocomplete(string colname, string target, mixed data, array options, boolean editing, boolean seraching, bool searching)
Construct autocompleter used in the grid. The autocomplete can be used in the editing modules or/and in search module.
public void setDatepicker(string colname, array options, boolean editing, boolean seraching, bool searching)
Construct a pop up calender used in the grid. The datepicker can be used in the editing modules or/and in search module.
public bolean setGridEvent(string event, string code)
Set a valid grid event
public boolean higridsNO(string module, array aoptions)
Set options in the navigator for the diffrent actions
public boolean setNavEvent(string module, string event, string code)
Set a event in the navigator or in the diffrent modules add,edit,del,view, search
public boolean inlineNavOptions(string module, array aoptions)
Set a options for inline editing in particulear module
public boolean inlineNavEvent(string module, string event, string code)
Set a event for inline editing in particulear module
public type getInlineOptions()
Return a array of the all events and options for the inline navigator
public void setFilterOptions(array aoptions)
Set options for the tolbar filter when enabled
public void callGridMethod(string grid, string method, array aoptions)
Construct a code for execution of valid grid method. This code is putted after the creation of the grid
public void setJSCode(string code)
Put a javascript arbitrary code after all things are created. The method is executed only once when the grid is created.
public boolean setColModel(array model, array params, array labels)
Construct the column model of the grid. The model can be passed as array or can be constructed from sql. See _setSQL() to determine which SQL is used. The method try to determine the primary key and if it is found is set as key:true to the appropriate field. If the primary key can not be determined set the first field as key:true in the colModel. Return true on success.
public boolean higridsCP(mixed colname, array aproperties)
Set a new property in the constructed colModel Return true on success.
public boolean addCol(array aproperties, string position)
Add a column at the first or last position in the colModel and sets a certain properties to it
public void setButtonOptions(string exptype, array aoptions)
Set a various options for the buttons on the pager. tite, caption , icon
public mixed. higridOP(string tblelement, string pager, boolean script, array summary, array params, boolean createtbl, boolean createpg, boolean echo)
Main method which do allmost everthing for the grid. Construct the grid, perform CRUD operations, perform Query and serch operations, export to excel, set a jqGrid method, and javascript code