how can i do server side sort?

23 views
Skip to first unread message

andrey

unread,
Nov 30, 2010, 9:59:08 AM11/30/10
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"}])
......

JustGo

unread,
Nov 30, 2010, 7:46:57 PM11/30/10
to jsLINB
We'll add beforeSortColumn event later.

To declare global variables:
http://sigmawidgets.com/forum/visual-ajax-gui-builder/functions-and-global-variables/

andrey

unread,
Dec 2, 2010, 1:40:56 PM12/2/10
to jsLINB

ok
Reply all
Reply to author
Forward
0 new messages