Two problems about UI components

16 views
Skip to first unread message

allen

unread,
Sep 13, 2007, 11:17:06 AM9/13/07
to jsLINB
hi, we met two problems about UI components.

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

linb...@gmail.com

unread,
Sep 14, 2007, 4:27:20 AM9/14/07
to jsLINB
1.Use firebug or fiddler to monitor client data please.

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'}]}
]);

Reply all
Reply to author
Forward
0 new messages