Hello,
sorry for my question but i can’t find it in the docs
i get datas from mysql-db
|
1 2 3 4 5 6 7 |
while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)) { $responce->rows[$i]['id']=$row['hardwareInfoId']; $responce->rows[$i]['data-group']=$row['hardwareGroup']; $responce->rows[$i]['cell']=array($row['hardwareInfoId'],$row['roomNr'],$row['roomType'],$row['nlContainerTypeName'],$row['Type'],$row['hardwareTypeName'],$row['description'],$row['hardwareGroup'] ); $i++; } echo json_encode($responce); |
how i can get the data-group in my ajax-section?
i get my datas in datatype: json,
and
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
colNames:[ ' ', '<?=_("Room Nr.");?>','<?=_("Room Type");?>', '<?=_("Container type");?>', '<?=_("type");?>', '<?=_("Hardware type");?>', '<?=_("Description");?>' //'<?=_("group");?>' ], colModel:[ // { name: 'group', key: true, width: 75, hidden: true }, {name:'myac',index:'', width:80, fixed:true, sortable:false, resize:false, formatter:'actions', formatoptions:{ keys:true, delOptions:{recreateForm: true, beforeShowForm:beforeDeleteCallback}, } }, {name:'roomNr',index:'roomNr', width:30, sorttype:"int", edittype:"select", editable: true, . . . |
i would like add the data-group to my gridtabel-tows
if i add in ColModel,as hidden thats not possible, then is different from ColNames
sorry, i searching a lot in your docs and google but i can not find, how i can catch some datas they are get from my mysql-db
i find only ways to safe as hidden, but then i have also put a name to ColModels.
thats the reason why i would like put a data-attribute with my groupid to the gridtable
Please help
Thanks
Best regards
Achim
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top