:: Forum >>

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

obj.addRow()

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.
Tony
Sunday, December 18, 2005
Tony

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
Monday, December 19, 2005
Developers? I din't know Alex had cloned himself.
Mario
Monday, December 19, 2005
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)
Monday, December 19, 2005
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.
Tony
Monday, December 19, 2005
Tony,
ALL of the code is there and is in FULLY READABLE format. Check your install directory for the Source/Lib directory.
Jim Hunter
Tuesday, December 20, 2005
Thanks Jim,

I appologize, guess I only exracted the runtimes only.

Happy Coding ....
Tony
Wednesday, December 21, 2005
Guys,
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?
Andrew
Thursday, December 22, 2005
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
Thursday, December 22, 2005
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?

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

// 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
obj.setRowHeaderWidth("28px");
obj.setColumnHeaderHeight("20px");

// 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();};
document.write(obj);

</script>
Andrew
Tuesday, January 3, 2006
I figured this out. It's v2 functionality. I had v1 examples :-).
Andrew
Wednesday, January 4, 2006

This topic is archived.


Back to support forum

Forum search