Search found 102 matches

by linb
Fri May 31, 2013 6:30 am
Forum: Cookbook
Topic: TreeGrid's built-in options
Replies: 0
Views: 6296

TreeGrid's built-in options

1.Column/Header options in setHeader / updateHeader id : String, column's unique id width : Integer, column's width relWidth : Boolean, column's width is automatically computed to fill all the remaining space, or not minWidth : Integer, column's min width maxWidth : Integer, column's max width capt...
by linb
Thu May 30, 2013 3:48 am
Forum: CrossUI Code Snaps
Topic: Demo code for upload file
Replies: 0
Views: 7134

Demo code for upload file

xui.Class('App', 'xui.Com',{ Instance:{ iniComponents:function(){ // [[Code created by CrossUI RAD Tools var host=this, children=[], append=function(child){children.push(child.get(0))}; append( (new xui.UI.SLabel) .setHost(host,"slabel1") .setLeft(30) .setTop(44) .setCaption("Select your file: ") )...
by linb
Thu May 30, 2013 3:40 am
Forum: CrossUI Code Snaps
Topic: How to load list of ComboInput dynamically
Replies: 0
Views: 6611

How to load list of ComboInput dynamically

Class('App', 'xui.Com',{ Instance:{ autoDestroy:true, iniComponents:function(){ // [[Code created by CrossUI RAD Tools var host=this, children=[], append=function(child){children.push(child.get(0))}; append( (new xui.UI.ComboInput) .setHost(host,"comboinput2") .setLeft(70) .setTop(30) .setType("lis...
by linb
Thu May 30, 2013 3:26 am
Forum: CrossUI Code Snaps
Topic: How to trigger event manually?
Replies: 0
Views: 6619

How to trigger event manually?

Class('App', 'xui.Com',{ Instance:{ iniComponents : function(){ // [[Code created by CrossUI RAD Tools var host=this, children=[], append=function(child){children.push(child.get(0))}; append( (new xui.UI.SButton) .setHost(host,"ctl_sbutton1") .setLeft(220) .setTop(240) .setCaption("Trigger beforePa...
by linb
Tue May 28, 2013 3:28 am
Forum: CrossUI for Web Apps
Topic: UI Control’s Drag&Drop not running in Mozilla
Replies: 2
Views: 4472

Re: UI Control’s Drag&Drop not running in Mozilla

I test those 3 demo code in Firefox2.0. It works well.

Can you descript your problem in detail. It will be better if you attach a picture.
by linb
Tue May 28, 2013 1:40 am
Forum: CrossUI Code Snaps
Topic: How to expand/fold all nodes in TreeView?
Replies: 0
Views: 6574

How to expand/fold all nodes in TreeView?

The followsing code needs xui revision >= 23: Class('App', 'xui.Com',{ Instance:{ iniComponents : function(){ // [[Code created by CrossUI RAD Tools var host=this, children=[], append=function(child){children.push(child.get(0))}; append( (new xui.UI.Block) .setHost(host,"ctl_pane6") .setLeft(30) .se...
by linb
Fri May 24, 2013 12:47 am
Forum: CrossUI Code Snaps
Topic: To adjust row height depending on content in TreeGrid
Replies: 0
Views: 6733

To adjust row height depending on content in TreeGrid

Class('App', 'xui.Com',{ Instance:{ iniComponents : function(){ // [[Code created by CrossUI RAD Tools var host=this, children=[], append=function(child){children.push(child.get(0))}; append( (new xui.UI.Block) .setHost(host,"ctl_block2") .setLeft(70) .setTop(40) .setWidth(500) .setHeight(330) .set...
by linb
Thu May 16, 2013 12:37 pm
Forum: Cookbook
Topic: CrossUI Cookbook download
Replies: 0
Views: 5912

CrossUI Cookbook download

by linb
Wed May 15, 2013 3:25 am
Forum: Node.js
Topic: CrossUI Node.js Backend Demo
Replies: 0
Views: 15510

CrossUI Node.js Backend Demo

xuiService.js : /** * Important note: this demo application is for CrossUI created by Alex Pavlov ([email protected].com) */ var http = require('http'), url = require('url'), fs = require('fs'), querystring = require('querystring'), server, net = require('net'); var getParams = function(req, callbac...
by linb
Wed May 15, 2013 2:51 am
Forum: Java
Topic: CrossUI Java Backend Demo
Replies: 0
Views: 14537

CrossUI Java Backend Demo

xuiUtils.java : package com.crossui; import java.io.IOException; import java.io.OutputStream; import java.util.HashMap; import java.util.Map; import java.util.zip.GZIPOutputStream; import java.util.zip.ZipOutputStream; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServl...