JqxGrid Settings Manipulation with Grid1 settings: Difference between revisions
Jump to navigation
Jump to search
Kaplanerkan (talk | contribs) Created page with "== Settings with Grid1_settings Parameter == var source = {datatype: "json", _ datafields:[{name:"SPKNummer", type:"number"}, _ {name:"Text_D", type..." |
Kaplanerkan (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Settings with Grid1_settings Parameter == | == Settings with Grid1_settings Parameter == | ||
<pre> | |||
var source = {datatype: "json", _ | var source = {datatype: "json", _ | ||
datafields:[{name:"SPKNummer", type:"number"}, _ | datafields:[{name:"SPKNummer", type:"number"}, _ | ||
| Line 31: | Line 31: | ||
.................. | .................. | ||
</pre> | </pre> | ||
==Result== | |||
[[File:Jqxgrid grupped.jpg]] | |||
Latest revision as of 14:07, 25 December 2014
Settings with Grid1_settings Parameter
var source = {datatype: "json", _
datafields:[{name:"SPKNummer", type:"number"}, _
{name:"Text_D", type:"string"}, _
{name:"WGruppenText", type:"string"}, _
{name:"Preis3", type:"number"}], _
url:"http://localhost/Kasse/jsonparser.php/?urlToGet=ipadspeisekarte.json" _
};
dataAdapter=new $.jqx.dataAdapter(source);
Grid1_settings.source = dataAdapter
Grid1_settings.columns = [ _
{text:"Menue",datafield:"SPKNummer",width:100,cellsalign:"left",align: "left"}, _
{text:"Beschreibung",datafield:"Text_D", width:400,cellsalign:"left",align: "left",columntype:"textbox", filtertype:"textbox",filtercondition:"starts_with"}, _
{text:"Gruppen",filtertype: "list", datafield: "WGruppenText",filtertype: "list",width:150},_
{text:"Preis", datafield: "Preis3", width:100, cellsalign:"right", align: "right", cellsformat: "c2"}]
'
Rem Now you can use another SETTINGS for Grid1-Object
Grid1_settings.groups =["WGruppenText"]
Grid1_settings.pagermode=["simple"]
$("#Grid1").jqxGrid(Grid1_settings);
..................
..................
..................
