It is currently Mon Jul 24, 2017 2:30 pm

News News of UI Development & Deployment

Site map of UI Development & Deployment » Forum : UI Development & Deployment

For discussing development & deployment issues

Costom Cell's Editor Control

xui.Class('App', 'xui.Module',{
Instance:{
iniComponents : function(){
// [[Code created by CrossUI RAD Studio
var host=this, children=, append=function(child){children.push(child.get(0));};

append(
xui.create("xui.UI.Dialog")
.setHost(host,"xui_ui_dialog1")
.setLeft("2.5em")
.setTop("1.6666666666666667em")
.setWidth("35.833333333333336em")
.setHeight("20em")
.setCaption("Customize Cell's Editor")
.setMinBtn(false)
.setMaxBtn(false)
);

host.xui_ui_dialog1.append(
xui.create("xui.UI.Block")
.setHost(host,"xui_ui_block2")
.setDock("fill")
.setLeft("2.5em")
.setTop("2.5em")
.setBorderType("inset")
.setBackground("#FFFFFF")
);

host.xui_ui_block2.append(
xui.create("xui.UI.TreeGrid")
.setHost(host,"xui_ui_treegrid2")
.setLeft("0em")
.setTop("0em")
.setRowNumbered(true)
.setEditable(true)
.setRowHandler(false)
.setHeader()
.setRows([{
"cells":
},
{
"cells":
}])
.beforeIniEditor("_xui_ui_treegrid2_beforeinieditor")
);

append(
xui.create("xui.UI.List")
.setHost(host,"xui_ui_listeditor")
.setDirtyMark(false)
.setShowDirtyMark(false)
.setItems([{
"id":"item1",
"caption":"item1"
},
{ ...
Read more : Costom Cell's Editor Control | Views : 15 | Replies : 0 | Forum : CrossUI Code Snaps


draggable SVG rect and xui 2.0a

Why this code doesn't work with 2.0 ?
but it works with 1.4

It must set new left and top position of the SVG rectangle

// The default code is a module class (inherited from xui.Module)
// Ensure that all the value of "key/value pair" does not refer to external variables
xui.Class('App', 'xui.Module',{
Instance:{
// Dependency classes
Dependencies:,
// Required modules
Required:,

// To initialize properties
properties : {},

// To initialize instance(e.g. properties)
initialize ...
Read more : draggable SVG rect and xui 2.0a | Views : 119 | Replies : 2 | Forum : CrossUI for Web Apps


Make a container position draggable

How to make a Group (or possibly a panel) movable by the user by dragging?
Read more : Make a container position draggable | Views : 119 | Replies : 0 | Forum : CrossUI for Web Apps


Fusion Charts "onDataClick" Event

...doesn't fire.

The "onFusionChar"t event does work.

Ver 1.42LTS
Read more : Fusion Charts "onDataClick" Event | Views : 581 | Replies : 9 | Forum : CrossUI for Web Apps


ComboList Control

Assume an existing populated ComboList; Can you show examples of:

1) Add an item to the list
2) Remove an item from the list
3) Clear the list
Read more : ComboList Control | Views : 303 | Replies : 3 | Forum : CrossUI for Web Apps


Real code version

Can anyone write this out as normal code. I can't get the syntax right as it is a window in a window and refuses to accept "main"

xui.ComFactory.newCom("App.userPrefs",function(){ ????????????????

The code auto generated work a treat (shown below) I know I don't need the conditions part

"desc":"userprefs",
"type":"page",
"target":"App.userPrefs",
"params":,
"method":"show",
"conditions":[{
"left":"{args.id}",
"symbol":"=",
"right":"userprefs"

Thanks
Kevin
Read more : Real code version | Views : 214 | Replies : 1 | Forum : CrossUI for Web Apps


Panel user stretchable

I have a panel that contains a grid control. I want the user to be able to stretch the panel's width and height and the grid size should follow to fill the panel. Is there a property for this?
Read more : Panel user stretchable | Views : 208 | Replies : 1 | Forum : CrossUI for Web Apps


File Upload IAjax

I am unable to get IAjax to upload a file. I have tried regular Ajax with the File Combo box but that doesnt work for web application. I'm using the IAjax example from the Cookbook in chapter 4.5.2 page 109. I have over 20,000 lines of code so I'm only posting the sections that are specific to this issue. Basically, the "if(file)" condition is always false.

host.xui_ui_group1517.append(
xui.create("xui.UI.Label")
.setHost(host,"xui_ui_label_button_select_project")
.setLeft(20)
.setTop(130)
.setWidth(150)
.setZIndex(1002)
.setCaption("STEP 1: ...
Read more : File Upload IAjax | Views : 877 | Replies : 7 | Forum : CrossUI for Web Apps


TreeView branch selected color

When you unfold a TreeView branch, the branch's background color changes to the "Selected" color (blue-gray). This over-rides any color coding that might have been programmatically applied to the branch. How can I make sure that the desired color stays applied when a tree branch is selected/unfolded.
Read more : TreeView branch selected color | Views : 593 | Replies : 3 | Forum : CrossUI for Web Apps


New error in Ver 1.42

I'm getting these errors when my app starts in Ver 1.42, which I just installed:

Denying load of chrome-extension://ipdmoohkhghlcnojehgiodchpiphjbkh/logo256.png. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.
chrome-extension://invalid/

Failed to load resource: net::ERR_FAILED


I don't recall seeing these errors in the previous version. Does this look like something I might be doing?
Read more : New error in Ver 1.42 | Views : 704 | Replies : 3 | Forum : CrossUI for Web Apps


 

Login  •  Register


Statistics

Total posts 961 • Total topics 322 • Total members 35

cron