first, when we set linb.request's as asy model, the onSuccess method
is not invoded ever! We confirmed the the request is posted to server
and dealed correctly. The code is :
linb.request('/search.do'
, 'reqtype=findAllTypeSumByRouteRange&' + params
+ '&range=' + ra + '&routeuid=' + uid
, function(txt){
linb.message(" in init_typesum:" + txt);
var obj = _.unserialize(txt);
if(!obj || obj.error)
linb.message(txt);
else{
self.placesTreeGrid.setRows(obj);
}
}
, this.error_show
, false
, 'GET'
);
the second is how to hide a column when using TreeGrid? We wanna save
some data(like ID) in the column which will be used when the row is
selected. But the data are not needed to display.
Thank u :)
2.You can set hidden data to anywhere except in "cells" array.
setHeader:([
{id:'name', type:'label', caption:'name', width:
80}
]);
setRows([
{id:'1', ID:"your ID 1", cells:[{value:'your
name'}]},
{id:'1', ID:"your ID 2", cells:[{value:'your
name'}]}
]);