3.2.0

2.0 beta3 released

AW 2.0 beta3 is finally released today.

Download link:

http://www.activewidgets.com/download/activewidgets-2-0-b3.zip

Change log:

http://www.activewidgets.com/javascript.forum.9240.0/2-0-beta3-change-log.html

Cell editing API discussion:

http://www.activewidgets.com/javascript.forum.9201.14/please-comment-cell-editing-changing.html

I will post updated release schedule in the next few days.

Alex (ActiveWidgets)
November 29,
Hey Alex,
I just wanted to let you know that using IE, there has been no improvement on the column width problem for me with our application. The column resizing still looks all jacked up until I scroll the mouse up and down on the page repeatedly.

In Firefox, the grid does not show up at all.


Was this issue supposed to be addressed in this release??

Here is the code I am using:
This is not the whole page, but I can't figure why I get nothing in FF.

<style>
#myGrid .aw-grid-control{height:450; width:900;border:1;font:menu;}
#myGrid .aw-alternate-even{background:#eeeeee;}
#myGrid .aw-column-0 {width:100px;background-color:threedlightshadow;} /*Contract / Task */
#myGrid .aw-column-1 {width:300px;}/*Task Title*/
#myGrid .aw-column-2 {width:130px;}/*Project Controller*/
#myGrid .aw-column-3 {width:70px;}/*Tier Level*/
#myGrid .aw-column-4 {width:60px;}/*Tool*/
#myGrid .aw-column-5 {width:70px;text-align:right;}/*Lead Div*/
#myGrid .aw-column-6 {width:70px;text-align:right;}/*CRN*/
#myGrid .aw-column-7 {width:90px;}/*Prime CAN*/
#myGrid .aw-column-8 {width:100;text-align:center;}/*Start Date*/
#myGrid .aw-column-9 {width:100;text-align:center;}/*End Date*/
#myGrid .aw-column-10 {width:75;}/*Contract type*/
#myGrid .aw-column-11 {width:100px;text-align:right;}/*Negotiated Value*/
#myGrid .aw-column-12 {width:100px;text-align:right;}/*Funded Value*/
#myGrid .aw-column-13 {width:70px;text-align:right;}/*EAC Revenue */
#myGrid .aw-column-14 {width:70px;text-align:right;}/*EAC Fee*/
#myGrid .aw-column-15 {width:70px;text-align:right;}/*EAC Fee Percentage*/
#myGrid .aw-column-16 {width:100;text-align:center;}/*EAC Date*/
#myGrid .aw-column-17 {width:100px;text-align:right;}/*Prior EAC %*/
#myGrid .aw-column-18 {width:100;text-align:center;}/*Prior EAC Date*/
#myGrid .aw-column-19 {width:500;}/*Comments*/
#myGrid .aw-grid-cell {border-right:1px solid threedshadow;}
#myGrid .aw-grid-row {border-bottom:1px solid threedlightshadow;}
#myGrid .aw-mouseover-row{color:#FFFFFF;background-color:#999999;}
#myGrid .aw-grid-header,.aw-grid-footer{text-align:center;font-weight:bold;color:#000000;border:1px inset #999;background-color:threedlightshadow;}
</style>

Dim xml, xsl
Set xml = Server.CreateObject("Microsoft.XMLDOM")
Set xsl = Server.CreateObject("Microsoft.XMLDOM")

xml.async = False
xsl.async = False
rstData.Open strSQL, DataConn, adOpenStatic, adLockReadOnly, adCmdText
intRecCount = rstData.RecordCount
rstData.Save xml, 1 'adPersistXML
'to save as a viewable file
'rstData.Save Server.MapPath("new.xml"), 1 'adPersistXML
rstData.Close

xsl.load Server.MapPath("z.xsl")

strXML = xml.transformNode(xsl)

Set xsl = Nothing
Set xml = Nothing


<xml id="xmlDataIsland">
<companies>
<%=strXML%>
</companies>
</xml>
<%=intRecCount%> Total Records
<div>
<script language="javascript">
var table = new AW.XML.Table;

table.getText = function(i, j){
var node = this.getNode(i, j);
var data = node ? node.text : "";
var format = this._formats[i];
return format ? format.dataToText(data) : data;
};

var number = new AW.Formats.Number;
number.setTextFormat("$ #,###.##");

table.setFormat(number, 11);
table.setFormat(number, 12);
table.setFormat(number, 13);
table.setFormat(number, 14);

// get reference to the xml data island node
var xml, node = document.getElementById("xmlDataIsland");
// IE
if (window.ActiveXObject){
xml = node;
}
// Mozilla
else {
xml = document.implementation.createDocument("","", null);
xml.appendChild(node.selectSingleNode("*"));
}

table.setXML(xml);
var columns = ["Contract/Task", "Task Title", "Project Controller", "Tier Level", "Tool", "Lead Div." , "CRN", "Prime CAN", "Start Date", "End Date", "Contract Type", "Negotiated Value", "Funded Value", "EAC Revenue", "EAC Fee", "EAC Fee %", "EAC Date", "Prior EAC Fee %", "Prior EAC Date" , "Issues/Comments"];
var obj = new AW.Grid.Extended;
table.setColumns(["c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","c10","c11","c12","c13","c14","c15","c16","c17","c18","c19"]);
obj.setId("myGrid");

obj.setCellModel(table);
obj.setColumnCount(20);
obj.setFixedLeft(1);
obj.setFooterVisible(true);
obj.setFooterCount(1);
obj.setFooterText(columns);
obj.setHeaderCount(1);
obj.setHeaderText(columns);
obj.setRowCount(<%=intRecCount%>);

<%If intRecCount < 20 Then%>
obj.setControlSize(screen.width - 75, (25 * <%=intRecCount%>) + 50);
<%Else%>
obj.setControlSize(screen.width - 75, 500);
<%End If%>
obj.setCellText(function(i, j){return j + "-" + i});
document.write(obj);
</script>

Jim Shaffer
November 29,
Jim,

the following code (from 1.0) is no longer necessary -

/ get reference to the xml data island node
var xml, node = document.getElementById("xmlDataIsland");
// IE
if (window.ActiveXObject){
xml = node;
}
// Mozilla
else {
xml = document.implementation.createDocument("","", null);
xml.appendChild(node.selectSingleNode("*"));
}


You should replace it with just
var xml = document.getElementById("xmlDataIsland");


- should now work in both IE and Moz/FF

Regarding column resizing - I was thinking that it is solved in beta3, at least I was able to reproduce this problem in several layouts with beta2 and it now works fine with the same layouts with beta3.

Maybe your case is a different one - could you please post (or send me) your complete page (html, as seen from browser->view page source rather than server-side code) so I could reproduce this?
Alex (ActiveWidgets)
November 29,
Initial observations for beta3

1. I'm finding in FF that when using an Input control embedded in a grid, on clicking in the input box the cursor shows up OK, but you are not able to highlight text by holding the mouse button down and dragging across. (You can do this OK in the stand alone input as in the input.htm example.)

2. Combos - no change to a couple of things I've mentioned on previous posts (when beta2 came out I think):

(a) again in FF, when using combos embedded in a grid that has horizontal scrollbars, if you scroll across and then use a combo, the dropdown select box appears in a position relative to where the combo was pre-scroll, rather than "moving across" with the combo.

(b) not sure if these ones are problems or just "features":

- in IE I'm finding that the dropdown box has the same colour as the page body (in my case a grey which doesn't look good) - I would like to be able to set this to white.

- in both IE and FF the width of the dropdown seems fixed. It would be better, I would think, that this should scale to be the same size as the combo control itself (e.g. looks very odd when you have very small text length in a wide box).

Some others have posted that it would be good to have some sort of "known issues/bugs" page on the forum - I'd go along with that. I know it's another thing to add to the to do list, but I think that would streamline the forum considerably.

Regards
Will
Will
November 30,

This topic is archived.

See also:


Back to support forum