Upload
kishor-kumar
View
218
Download
0
Embed Size (px)
Citation preview
8/11/2019 Php Grid Doc
1/40
Archive Docs
System Requirements
phpGrid is operating system independent. It works on both Windows and Linux as long as theollowing components are installed!
"#" $.% or later
Apache& 'omcat& or (icrosot II) web server
my)*L +., or above
I you are new to Apache-"#"-my)l& consider using /A(""& an integrated installation rom Apache0riends. It installs Apache& "#"& and (y)*L in one batch installation and reuires almost noconiguration or both Windows and Linux operating systems.
Technical Overview System Environment! Web1based
Intended Audience! 2on1'echnical 3sers& Web Developers&
Language: (ultilingual
Operating System:4) Independent
Programming Language:"#"& 5*uery& 5Grid& /#'(L& )*L
ata!ase:All (odern 6elational Database 7thru AD4db8
)ince the ma5or system architecture shit in phpGrid version +& the new version abandons the old
programming model which heavily relies on server side scripting& both in rendering and dataoperations. (uch o the datagrid rendering now resides on the client side browser using 5*uery and5Grid. 'he server side is solely responsible or data 963D operations. 'he new version is muchmore scalable than the previous generation& It also oers more eatures& such as subgrid and themeroller.
"#" web1based editable datagrid now can be achieved in two lines o code rather than ive lines in theprevious version. It also use 9ascading )tyle )heets& or 9))& extensively or display related tasks& aperect balance between simplicity and eatures.
php"rid supports all ma#or data!ases
php"rid Supports all ma#or we! !rowsers:
http://phpgrid.com/documentation/technical-overview/http://www.apachefriends.org/en/xampp.htmlhttp://phpgrid.com/documentation/example-1-a-basic-php-datagrid/http://www.apachefriends.org/en/xampp.htmlhttp://phpgrid.com/documentation/example-1-a-basic-php-datagrid/http://phpgrid.com/documentation/technical-overview/8/11/2019 Php Grid Doc
2/40
Installation0irst and oremost& download the phpGrid rom the download page& and then extract the :ip ilesomewhere on your web server.
$on%iguration
;eore you begin coding using phpGrid& you must speciy database inormation in con%&php. con.phpis our phpGrid coniguration ile in which we speciy database connection parameters and path to the
phpGrid.)tarting phpGrid version
8/11/2019 Php Grid Doc
3/40
0or instance& i the 36L to get to the phpGrid is http:44www&yoursite&com4php"rid& orhttp:44localhost4php"rid& the )66C644' should be =4php"rid=.
i the 36L to phpGrid is http:44www&yoursite&com4admin4php"rid& orhttp:44localhost4admin4php"rid& the )66C644' should be =4admin4php"rid=&
and so orth.
4nce values in con.php are set& simply reerence phpGrid by adding the ollowing at on top o your"#" code!
,reuireConce7HphpGrid-con.phpH8E
ata!ase Type
phpGrid supports wide range o database types. )imply deine P'P"RI(5(T6PEparameter valueto your own database type. It can be one o the ollowing strings. 'he deault database type or phpGridis =mysl>. "#"G6IDCD;C'F" string is case sensitive.
P'P"RI(5(T6PE escription
mysl (y)*L 7deault8
odbcCmssl )*L )erver 7nix 4nly8
odbcCmsslCnative )*L )erver Windows native 7Download "#" )*L )erver Driver8
ociJ$ 4racle 7Got '2)K8
postgres "ostGre)l
access (icrosot Access
db? D;?
db?1dsnless D;? D)21less connection
inormix Inormix
inormix@? Alternative Inormix Driver
odbc Generic 4D;9
A ull list o supported databasesand naming convention are available in AD4dbwebsite. 2ot reuiredbut we encourage users to visit AD4db website. It helps you understand how phpGrid utili:es it underthe hood.
phpGrid now supportslocal array data sourcewithout using a database.
P'P "rid Oracle 7. 89g. 88g. 8c
When using "#" datagrid or 4racle database with '2) 7'ransparent 2etwork )ubstrate8& replace thedatabase host name with the '2) 2ame in con.php e.g.
, deine7B"#"G6IDCD;C#4)'2A(B& BF436 46A9L '2) 2A(B8E
http://phpgrid.com/documentation/about-odbc_mssql/http://www.microsoft.com/en-us/download/details.aspx?id=20098http://phpgrid.com/documentation/installation/#db_type_oracle_onlyhttp://phplens.com/lens/adodb/docs-adodb.htm#drivershttp://adodb.sourceforge.net/http://adodb.sourceforge.net/http://phpgrid.com/example/local_array_data_source/http://phpgrid.com/example/local_array_data_source/http://www.php.net/definehttp://phpgrid.com/documentation/about-odbc_mssql/http://www.microsoft.com/en-us/download/details.aspx?id=20098http://phpgrid.com/documentation/installation/#db_type_oracle_onlyhttp://phplens.com/lens/adodb/docs-adodb.htm#drivershttp://adodb.sourceforge.net/http://phpgrid.com/example/local_array_data_source/http://www.php.net/define8/11/2019 Php Grid Doc
4/40
php"rid $onstructorAter successul installation& call the constructor similar to the ollowing!
, dg M new 9CDataGrid7H)L9' 064( 4rdersH& Horder2umberH& H4rdersH8E'he details o phpGrid constructor is explained below!
__constructor($sql, $sql_key=id, $sql_table=, $db_connection=)
Parameter*s,:
sql! )*L )L9' statement. 'his is the only )*L statement users needs to implement.
'he )L9' statement must include the primary key as one o the columns i not usingthe wildcard start78 in )L9' statement.
'his parameter can also be a local array 7version $.$N8. )ee phpGrid local array
data sourceusage example.
sql(;ey! 'he name o the database table primary key. 'he deault is =id>.
)tarting version
8/11/2019 Php Grid Doc
5/40
HorderdetailsH8E9heck out the composite primary key online example.
set(query(%ilter*'ERE, Parameters!
'ERE! )l W#6 statement to select data conditionally 7D4 24' include
W#6 keyword8. escription!
'he uery ilter is essentially the W#6 clause without the W#6. 'he method adds
W#6 condition to already existing )l )L9' statement. 3se this method i youhave W#6 clause in your )*L statement. Fou should use the same )*L syntax& suchas single uotes around non1numeric values& and even )*L unctions.
Remar;!
D4 24' include keyword =W#6> the ilter. phpGrid automatically adds W#6 to
the uery. 3se only )I2GL *34' around the iltered value.
E0ample!
, dg 1P setCueryCilter7HstatusMB)hippedB A2D FA67shippedDate8 M ?JJ%H8E
ena!le(edit*, ?* Please note this feature is only available in paid versions.
Parameters!
8/11/2019 Php Grid Doc
6/40
ena!le(e0port*, Parameter*s,!
8/11/2019 Php Grid Doc
7/40
escription!
nable debug displays phpGrid ob5ect as well as the current "#" session inormation. In
addition& /(L#ttp6euest& or ASA/& response data is displayed that occurs during963D operations. 'his is helpul debugging inormation can be used duringdevelopment.
It also display the phpGrid version number and associated 5avascript libraries used.
Remar;! (ake sure this method is not called& or the debug parameter is set to alse& when
deployed in production. E0ample!
, dg 1P enableCdebug7true8E
ena!le(search*, Parameter*s,:
can(search! boolean. When set to true& the search icon displays in the ooter& and the
integrated search is toggled when the icon is clicked. escription:
'he integrated search provides an intuitive interace or searching data within the
datagrid. 'he user can search one or multiple ields. 2o additional programming isreuired. 'he datagrid is automatically rereshed and repopulated with results returnedrom the uery through ASA/.
Remar;!
'he integrated search is toggle o by deault. 9lick on the )earch button in the ooter to
toggle on the integrated search. E0ample:
, dg 1P enableCsearch7true8E
set(caption*, Parameter*s,:
caption! the text or the grid caption
escription:
When set& this method displays text above the column header as the datagrid
caption. When this method is not called& phpGrid sets the table name as the deaultcaption. 0or example& the caption will be displayed as =4rders> when the table name is=4rders>.
Remar;:
When caption is set to empty string& e.g. >& the space used or displaying caption will be
hidden& leaves only the column header& grid& and the ooter. 'o display the captionwithout any text& uses > > without the uote.
E0ample:
,dg 1P setCcaption7BB8E -- this will hide thecaption
http://phpgrid.com/documentation/enable_search/http://phpgrid.com/documentation/set_caption/http://phpgrid.com/documentation/enable_search/http://phpgrid.com/documentation/set_caption/8/11/2019 Php Grid Doc
8/40
set(col(currency*, Parameter*s,:
col(name! column name
pre%i0! currency preix. 'he deault is 3)D symbol&
8/11/2019 Php Grid Doc
9/40
?%+
dg 1P setCcolCdynalink7Hproduct9odeH& Hhttp!--www.example.com-H& Horder2umberH&BTampEooMbarB& HCtopH8E-- an array o multiple dynamic ields as dyna"aram parameterdg 1P setCcolCdynalink7Hproduct9odeH& Hhttp!--www.example.com-H& array7Horder2umberH&Hcustomer2umberH& HpriceH8& BTampEooMbarB& HCtopH8E
set(col(edittype*, Parameter*s,:
col(name! 9olumn name
ctrl(type! #'(L control type. A list o valid controls are!
te0t
te0tarea
select
chec;!o0
password
!utton autocompleteU 2ewQ
;eyvalue(pair! 'his parameter is only reuired when the ctrlCtype is type =select> or
=checkbox>. It essentially represents list o value key pairs in the dropdown. e.g. =,!)an0ranciscoE?!;ostonE%!2F9>. It is ignored i the control type is not =select>. U #int! add=:> 7colon semicolon8 to the ront o the the key value pairs to add a blank dropdownoption.
v-& =pdate:
you can now use values rom a database lookup table to bind the dropdown. )imply pass)L9' statement or the keyvalueCpair when the ctrlCtype is =select>. 0or example!
#ELE$% &ey' value (R") (""
multiple! 'his parameter is only used when control type is =select>. It indicates
whether multiple items can be selected in the list o options. 'he values are passed andstored as a comma delimited string. e.g. =,&?&%V. 0or single value =select>& this is notreuired.
escription:
)et control o a speciic column used or grid editing. It displays #'(L input tag o
dierent type accordingly e.g. input typeM>text> -P& input typeM>textarea> -P
Remar;: 'ext and textarea are set automatically based on the database access library AD4db
metatypeas the deault edit control. 3sers do not need to understand how AD4db workssince phpGrid took care all the plumbing work internally. IsnRt that niceK
E0ample:
,?%+
dg 1P setCcolCedittype7Hoice9odeH& HselectH& H,!)an 0ranciscoE?!;ostonE%!2F9H& alse8Edg 1P setCcolCedittype7HisActiveH& HcheckboxH& H,!JH8E-- bind dropdown menu to a lookup tabledg 1P setCcolCedittype7Hoice9odeH& HselectH& H)elect oice9ode&city rom
http://www.php.net/arrayhttp://phpgrid.com/documentation/set_col_edittype/http://phplens.com/lens/adodb/docs-adodb.htm#metatypehttp://phplens.com/lens/adodb/docs-adodb.htm#metatypehttp://www.php.net/arrayhttp://phpgrid.com/documentation/set_col_edittype/http://phplens.com/lens/adodb/docs-adodb.htm#metatypehttp://phplens.com/lens/adodb/docs-adodb.htm#metatype8/11/2019 Php Grid Doc
10/40
oicesH&alse8E
set(col(%ormat*, Parameter*s,:
col(name! Datagrid column name
%ormat! 'he ormat types are! integer
number
link
showlink
currency
date
checkbox
select
%ormatoptions! "#" array stores ormat options o dierent ormatting.
escription:
Although this method is purely or cosmetic purpose& it is very useul and also practical
in many situations when displaying dierent type o data. Depending on the type o ormat& it could have dierent ormat options. In most cases&
users only need to set column ormatting or =integer>& =number>& and =mail> using thismethod. 0or =currencyR& =link>& and =showlink> ormats& phpGrid provides a number ohelper unctions to make ormatting simpler and easier. 'hey are
setCcolCcurrency78
setCcolClink78
setCcolCdate78
setCcolCdynalink78 'he helper unctions will be covered later in the documentation.
0or type =date>& users donRt have to do anything or ormatting. 'he ormat is
automatically set to =date> when the database data ield type is date or datetime. In addition& the ormats are automatically set as =checkbox> or =select> i the edit type is
checkbox or select deined in setCcolCedittype78. Remar;:
'hough all o the ormattings can be done in this method& it is recommended to use
helper unctions whenever possible. phpGrid ensures the ormatting is automated asmuch as possible. Automation means less coding& and thus less room orerror. )implicity is what phpGrid strives or.
'o create custom ormatter& please see setCcolCpropertyadvanced method. )ome5avascript knowledge is reuired.
E0ample:
,?%
dg 1P setCcolCormat7BuantityB&BintegerB& array7Bthousands)eparatorBMPB&B& BdeaultalueBMPBJB88Edg 1P setCcolCormat7HemailAddressH& HemailH8Edg 1P setCcolCormat7HweightH& BnumberB& array7Hthousands)eparatorH MP H&H& Hdecimal)eparatorH MPH.H& Hdecimal"lacesH MP B?B& HdeaultalueH MP BJ.JJB88E
http://phpgrid.com/documentation/set_col_format/http://phpgrid.com/documentation/set_col_currencycol_name-prefix-suffix-thousandsseparator-decimalseparator-decimalplaces2-defaultvalue0-00/http://phpgrid.com/documentation/set_col_link/http://phpgrid.com/documentation/set_col_date/http://phpgrid.com/documentation/set_col_dynalink/http://phpgrid.com/documentation/set_col_property/http://phpgrid.com/documentation/set_col_property/http://www.php.net/arrayhttp://www.php.net/arrayhttp://phpgrid.com/documentation/set_col_format/http://phpgrid.com/documentation/set_col_currencycol_name-prefix-suffix-thousandsseparator-decimalseparator-decimalplaces2-defaultvalue0-00/http://phpgrid.com/documentation/set_col_link/http://phpgrid.com/documentation/set_col_date/http://phpgrid.com/documentation/set_col_dynalink/http://phpgrid.com/documentation/set_col_property/http://www.php.net/arrayhttp://www.php.net/array8/11/2019 Php Grid Doc
11/40
set(col(hidden*, Parameter7s8!
col(name! 9olumn name
edithidden! ;oolean value indicating whether the column is editable. 'he deault value
is set to true. 'his only applies when the edit mode is =046(>. A hidden column
cannot be editable in =I2LI2> edit mode. escription!
#ide a column in datagrid when displayed
Remar;!
'o hide column in both datagrid and orm& set the second parameter to alse
Important:'he data are still sent to the browser but hidden using 9)) display!none.
0or sensitive data such as passwords and ))2 etc& do not use this method& instead do notinclude those ields in your )*L at all.
E0ample!
,
?%+
-- hide only in grid display
dg 1PsetCcolChidden7Bemployee2umberB8E-- hide in both gird and edit ormdg 1P setCcolChidden7BD4;B& alse8E
Tip:'o do the reverse& meaning to have a ield appear in grid& but not in the orm& use setCcolCpropertyseteditable to alse and hidedlg to true.
,dg1PsetCcolCproperty7B94L3(2C2A(B&array7BeditableBMPalse&BhidedlgBMPtrue88E
set(col(img*, Parameter7s8!
col(name! 9olume name
!ase(=rl! 4ptional. ;ase 36L to image 7added in version $.J8
escription!
Display as image or a data ield in data grid. 'he optional second parameter is added in
version $.J. It speciies the base 36L-target or all relative 36Ls to images ile. E0ample!
Assuming the productImag value is =abc.5pg>& the ollowing will render a img tag similar to
. 'he ?nd parameter =-images-> orm the base 36L to the =abc.5pg>
,dg 1P setCcolCimg7HproductImageH&H-images-H8E
set(col(lin;*, Parameter7s8!
col(name! 9olumn name
http://phpgrid.com/documentation/set_col_hidden/http://phpgrid.com/documentation/set_col_property/http://www.php.net/arrayhttp://phpgrid.com/documentation/set_col_img/http://phpgrid.com/documentation/set_col_link/http://phpgrid.com/documentation/set_col_hidden/http://phpgrid.com/documentation/set_col_property/http://www.php.net/arrayhttp://phpgrid.com/documentation/set_col_img/http://phpgrid.com/documentation/set_col_link/8/11/2019 Php Grid Doc
12/40
target! #yperlink target attribute. 'he deault is Cnew
escription!
Display the text in column as a static hyperlink.
Remar;!
3se this method or displaying static #'(L hyperlink. 0or dynamic links& use
setcoldynalin&78 method.
E0ample!
, dg 1P setCcolClink7Hproduct9odeH8E
set(col(readonly*, Parameter7s8!
col(names! 9omma delimited one or more column names
escription!
)et one more more columns as read only ield
E0ample!
, dg 1P setCcolCreadonly7H))2& lastname&employee2umberH8E
set(col(required*, Parameter7s8!
col(names! 9omma delimited one or more column names
escription!
)et one more more columns as reuired ield during edit
E0ample!
, dg 1P setCcolCreuired7Hphone&emailH8E
set(col(title*, Parameter7s8!
col(name! 9olume name
new(title! Display title in grid column header
escription!
9hange data grid column header text rom the deault data ield name to more user
riendly name
Remar;! 'he deault column header text is the database table data ield name
E0ample!
,dg 1P setCcolCtitle7HnameH& H0irst2ameH8E
set(dimension*, Parameter7s8!
http://phpgrid.com/documentation/set_col_readonly/http://phpgrid.com/documentation/set_col_required/http://phpgrid.com/documentation/set_col_title/http://phpgrid.com/documentation/set_dimension/http://phpgrid.com/documentation/set_col_readonly/http://phpgrid.com/documentation/set_col_required/http://phpgrid.com/documentation/set_col_title/http://phpgrid.com/documentation/set_dimension/8/11/2019 Php Grid Doc
13/40
width! Datagrid width
height! Datagrid height. 'he deault is ,JJX which expanses grid vertically to the
entire browser height
8/11/2019 Php Grid Doc
14/40
set(masterdetail*, ?* Please note this feature is only available in paid versions.
Parameter7s8!
o!#(grid! phpGrid ob5ect as the detail datagrid
%;ey! 0oreign key to the detail table.
escription! 'his method sets the master detail& or the parent child& relationship between datagrids.
'he phpGrid went the extra mile to make creating the master detail datagrid a simple
task or developers. 'he primary key value o master datagrid is auomatically retrievedwhen user selects a row and used as the value to the oreign key in the detail grid. 'hedetail grid renders dynamically based on the row selected in parent grid.
Remar; *important,!
'he detail grid is a regular phpGrid ob5ect and can have the same methods like any other
phpGrid& such as description title& sort& and update etc. A master detail can have one ormore detail datagrid.
'he oreign key& or key& does 24' necessarily have to have the same name as the
master table primary key& as long as the samename exists in both master and detailtables.
When oreign keys donRt have the same name& you should use )*L aliasin the master
grid. #owever& i the grid is editable& itRs important to callsetCcolCreadonly78and set thenew alias to be read only.
5y leaving the %oreign ;ey %ield !lan; in detail grid. master grid will pre%ill its
detail grid with the value o% the %oreign ;ey !e%ore the new record is saved4insertedto the data!ase ta!le& Or simply hide the entire %oreign ;ey column *3ersion -&/&/and a!ove only,&
E0ample!
,?%+
-- orderId exists in both master table74rders8 and detail table74rderDetails8dg M new 9CDataGrid7H)L9' orderId& orderDate& customerId 064( 4rdersH& Horder2umberH&H4rdersH8Esdg M new 9CDataGrid7H)L9' lineId& orderId& product9ode& price 064( 4rderDetailsH&HlineIdH& H4rderDetailsH8Edg 1P setCmasterdetail7sdg& BorderIdB8E
When oreign keys donRt have the same name& you can use )*L aliasin the master grid. dit will ailwhen using )*L alias in detail grid. ;ut also remember to set the alias to be read only i the grid iseditable.
,?%+$
-- productId is )*L alias to product2o in master table7"roduct"arts8& then used as oreign key to link
to detail table7"roducts8.dg M new 9CDataGrid7H)L9' part2o& part2ame& product2o A) productId 064( "roduct"artsH&Hpart2oH& H"roduct"artsH8Edg 1P enableCedit7BI2LI2B& B963DB81PsetCcolCreadonly7HproductIdH8Esdg M new 9CDataGrid7H)L9' productId& product2ame& productDescription 064( "roductsH&HproductIdH& H"roductsH8Edg 1P setCmasterdetail7sdg& BproductIdB8E
http://phpgrid.com/documentation/set_masterdetail/http://www.w3schools.com/sql/sql_alias.asphttp://phpgrid.com/documentation/set_col_readonly/http://phpgrid.com/documentation/set_col_readonly/http://www.w3schools.com/sql/sql_alias.asphttp://phpgrid.com/documentation/set_masterdetail/http://www.w3schools.com/sql/sql_alias.asphttp://phpgrid.com/documentation/set_col_readonly/http://www.w3schools.com/sql/sql_alias.asp8/11/2019 Php Grid Doc
15/40
set(multiselect*, Parameter7s8!
multiselect! ;oolean value indicates whether the multiselect is allowed
escription!
When parameter multiselect is set to true& a checkbox is shown to the let o each row.
It is currently only used or enabling deleting multiple records. (ore unctions will beadded to this eature in the uture.
E0ample!
,dg 1PsetCmultiselect7true8E
set(pagesi@e*, Parameter7s8!
pagesi@e! An integer value indicates number o results displaying in a page in the
datagrid escription!
'his method changes the deault pagination o the datagrid. 'he deault is ?J.
Remar;!
"agination is disabled when setCscroll78is set to true. )ee setCscroll78or more
inormation. E0ample!
,dg 1P setCpagesi:e7+J8E -- display up to +J rows in apage
set(row(color*, Parameter7s8!
hover(color! ;ackground color when mouse is over a row
highlight(color! ;ackground color when a row is clicked on
alt(color! Alternating row color
escript!
'his method is pure cosmetic. When modiied& it overwrites color o 5*uery 3I
properties! ui1state1hover&
ui1state1highlight
ui1priority1secondary
E0ample!
,dg 1P setCrowCcolor7ByellowB& BlightblueB&BlightgrayB8E
set(scroll*, Parameter7s8!
scroll! ;oolean value indicates wheter
http://phpgrid.com/documentation/set_multiselect/http://phpgrid.com/documentation/set_pagesize/http://phpgrid.com/documentation/set_scroll/http://phpgrid.com/documentation/set_scroll/http://phpgrid.com/documentation/set_row_color/http://phpgrid.com/documentation/set_scroll/http://phpgrid.com/documentation/set_multiselect/http://phpgrid.com/documentation/set_pagesize/http://phpgrid.com/documentation/set_scroll/http://phpgrid.com/documentation/set_scroll/http://phpgrid.com/documentation/set_row_color/http://phpgrid.com/documentation/set_scroll/8/11/2019 Php Grid Doc
16/40
height! phpGrid height
escription!
3se vertical scroll to load data. 'he datagrid will not load everything at once and will
hold all the items rom the start through to the latest point ever visited. 'his preventsmemory leaks rom happening.
Remar;!
"agination is disabled when scroll is set to true.
'he deault height is +JJ when scroll is true and should never be R,JJXR.
E0ample!
,dg 1PsetCscroll7true8E
set(sortname*, Parameter7s8!
col(name! 9olumn name to sort
8/11/2019 Php Grid Doc
17/40
+$. phpGrid bundles the ollowing themes rom 5*uery
3I! dot1luv
excite1bike
lick
overcast pepper1grinder
redmond
smoothness
start
ui1darkness
ui1lightness
aristo [[[[U 7Premium theme8
cobalt [[[[U 7Premium theme8
'he deault theme is YstartY.
E0ample!
,dg 1PsetCtheme7BlickB8E
"remium themes are currently available to nterprise and 3niversal Licenses.
set(col(width*, Parameters!
http://www.php.net/arrayhttp://www.php.net/arrayhttp://phpgrid.com/documentation/set_theme/http://phpgrid.com/documentation/themehttp://phpgrid.com/documentation/set_col_width/http://www.php.net/arrayhttp://www.php.net/arrayhttp://phpgrid.com/documentation/set_theme/http://phpgrid.com/documentation/themehttp://phpgrid.com/documentation/set_col_width/8/11/2019 Php Grid Doc
18/40
8/11/2019 Php Grid Doc
19/40
Remar;:
'his method must be used together with setCgroupCproperties78 method.
E0ample!
,
?%
dg 1P setCgroupCproperties7Bcustomer2umberB8Edg 1P setCgroupCsummary7BamountB&BsumB8Edg 1PsetCgroupCsummary7Bcheck2umberB&BcountB8E
ena!le(rownum!ers*, Parameters!
.
escription!
#ori:ontal alignment o text in a column. 'he deault alignment is let.
E0ample!
,dg 1P setCcolCalign7BamountB&BrightB8E
ena!le(advanced(search*, Parameters!
8/11/2019 Php Grid Doc
20/40
set(locale*, Parameters!
& =2ext>& ="age>&=0ind> etc. 'he language locale iles are located in 5s\src\i,n directory.
E0ample!
, dg 1P setClocale7HrH8E -- 0rench locale
set(conditional(%ormat*, ?* Please note this feature is not available in Lite and asic versions.
Parameters!
8/11/2019 Php Grid Doc
21/40
'he elements are described in details as the ollowing!
'he irst parameter& condition& has the ollowing available value.
eq! ualsne! 2ot uals
lt! Less thanle! Less than or ualgt! Greater thange! Greater than or ualcn! 9ontainsnc! Does not 9ontain!w! ;egins With!n! 2ot ;egins Withew! nds Withen! 2ot nds With
'he second parameter& value& is the comparing value in the right operand.
cssparameter in ormattoptions is an array collection that contains css style element orcurrent cell or row.
E0ample!
,?%+$E > QM true > etc. or a single column. In other words& only one condition
can be applied to any giving column. E0ample!
2ote that tstyle and style are 9)) styles used as the ormatoptions.
,?
%+$