Lacking Docs??

Is it me, or does it look like this code is really, really cool and powerful. the docs show you methods and attibutes that are available for controls, it makes it look like it can be really useful. But there is a large lack of examples/sample code???

Ex. AW.UI.Grid


Ok. What else? Can't add data? How do you add the data, without dipping into the JS code how do we even now how it works? This is just one example, but looks like most of the docs are the same, there are only a few things that have examples.
December 18,

I agree with you. I see enormous potential for this product but I am equally frustrated.

There has been no response from the developers for a while. I think they are battling to get the edit-in-place in Version 2 to work across all browsers because of the inconsistencies in the JS standards.

Rick Jordan
December 19,
Developers? I din't know Alex had cloned himself.
December 19,
I know that there is no docs :-( The proper documentation and examples will be added at the later stage. Currently (exactly as Rick said) I am stuck implementing the last missing group of features (editing, validation and focus) and this turned out to be very painful.
Alex (ActiveWidgets)
December 19,
I guess I wouldn't be so frustrated if I could actually read the code and not have to go through and format the code to be readable since there aren't any tabs or newlines. At least that would be better than having complete API docs.
December 19,
ALL of the code is there and is in FULLY READABLE format. Check your install directory for the Source/Lib directory.
Jim Hunter
December 20,
Thanks Jim,

I appologize, guess I only exracted the runtimes only.

Happy Coding ....
December 21,
quick question,
I just discovered your technology for myself.
GUI looks awesome.
For my application, I need action (like onClick()) for almost every cell in the grid. Is it supported or not?
December 22,
You can assign code the the onclick event of almost anything you create. For a given cell use this format:

obj.getCellTemplate(2, 3).onClick = function(){ your function };

or if you have a generic function that handles all cell clicks:

obj.onCellClicked = function(event, column, row){ yourFunction(column, row, event)}
Jim Hunter
December 22,
guys I tried very simple thing
obj.getCellTemplate(1, 1);
in the basic.html
it gives me:
obj.getCellTemplate() is not a function
what I'm doing wrong?

January 3,
cut/copy your code here so we can see the 'whole picture' as there might be something else getting in the way.
Jim Hunter
January 3,
this is it:

// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;

// set number of rows/columns
obj.setRowProperty("count", 20);
obj.setColumnProperty("count", 5);

// provide cells and headers text
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});

// set headers width/height

// set click action handler
obj.setAction("click", function(src){window.status = src.getItemProperty("text")});

// write grid html to the page
obj.getCellTemplate(1, 1);//.onClick = function (){function ddd();};

January 3,
I figured this out. It's v2 functionality. I had v1 examples :-).
January 4,

This topic is archived.

See also:

Back to support forum