andrey
unread,Nov 30, 2010, 9:59:08 AM11/30/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsLINB
see what i did. declared two vars sdf and sdf1 (boolean type), sortby
function which changes sdf = !sdf and sdf1 =!sdf1.
Finally i will add linb.ajax('sort.php' .... to send sort parameters.
Is there any other way to do server sort. why there is no events like
onSortColumn or else?
and where is correct place to declare global variables?
-----------------------------------------------------------
.....
iniComponents : function(){
// [[code created by jsLinb UI Builder
var host=this, children=[], append=function(child)
{children.push(child.get(0))};
->* var sdf =true;
->* var sdf1=true;
append(
(new linb.UI.Pane)
.setHost(host,"ctl_pane6")
.setLeft(310)
.setTop(140)
.setWidth(470)
.setHeight(280)
);
host.ctl_pane6.append(
(new linb.UI.TreeGrid)
.setHost(host,"ctl_treegrid2")
.setRowNumbered(true)
.setHeader([
{"id":"col1", "caption":"1",
->* "sortby":function() { sdf=!sdf;
linb.log("1:"+sdf); },
"width":80, "type":"label"}, {"id":"col2",
"caption":"2",
->* "sortby":function(x,y) { sdf1=!sdf1;
linb.log("2:"+sdf1); },
"width":80, "type":"label"}])
......