JqxGrid Settings Manipulation with Grid1 settings

From NSB App Studio
Revision as of 13:59, 25 December 2014 by Kaplanerkan (talk | contribs) (Created page with "== Settings with Grid1_settings Parameter == var source = {datatype: "json", _ datafields:[{name:"SPKNummer", type:"number"}, _ {name:"Text_D", type...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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);

.................. .................. ..................