3.0 beta 2

2.5.1 vs 2.0.2 grid problems, possible bug?

Ok, having a few problems with my grids when trying to use 2.5.1 but I get no problems in 2.0.2.

With the following example, when using 251, when I try to resize during run time (not via css), I get a javascript error OR it will just hang up entirely. The only way to get out when it hangs is to kill IE entirely. Using IE6 only and can not use another browser. I am also getting on occassion some weird problems with row highlighting. It is almost like the onmouseover events are not working or the div's are the wrong size as I can get a row to highlight (and am then able to select it by clicking) but only if I use the bottom pixel of the row.

Trying to remember the other problem, there was one more...I'll dink with it more and get it figured out and post the other thing.

The XML output is similar to:
<xml>
    <host>
        <value1 />
        <value2>value2</value2>
        <value3>value3</value3>
        <value4>value4</value4>
        <value5>value5</value5>
    </host>
</xml>


<HTML>
<HEAD>
  <LINK href="/ActiveWidgets202/runtime/styles/aqua/aw.css" rel="stylesheet"></LINK>
  <SCRIPT src="/ActiveWidgets202/runtime/lib/aw.js"></SCRIPT>
  <style>
      #obj         { left:  25px; top: 45px; width: expression(document.body.clientWidth - 50); height: 330px; }
      #obj         .aw-alternate-even {background: #fff;}
      #obj         .aw-alternate-odd  {background: #eee;}
      #obj         .aw-mouseover-row  {background: #c0c0c0;}
      #obj         .aw-mousedown-row  {background: #999;}
      #obj         .aw-rows-selected  {background: #316ac5; color: white; }
      #obj         .aw-rows-selected  .aw-grid-cell {background: none!important; color: white!important;}
      #obj         .aw-rows-selected  a:link       { color: white; }
      #obj         .aw-rows-selected  a:active     { color: white; }
      #obj         .aw-rows-selected  a:visited    { color: white; }
  </style>
</HEAD>
<BODY class="aw-background-1" style="overflow-y: hidden">
  <SCRIPT>
    data_url = '/cgi-bin/data.cgi';

    var obj = new AW.Grid.Extended;
    var data = new AW.XML.Table;
    data.setURL(data_url);
    data.setRequestMethod("POST");
    data.setParameter("type", "lookup");
    data_response = data.response;
    data.response = function(xml) {
      data_response.call(this, xml);
      obj.setRowCount(data.getCount());
      obj.refresh();
    }

    obj.setId("obj");
    obj.setCellModel(data);
    obj.setHeaderText(["", "", "head1", "head2", "head3", "head4", "head5"]);
    obj.setColumnIndices([1,2,3,4,5,6]);
    obj.setColumnCount(6);
    obj.setSelectionMode("multi-row-marker"); 
    obj.setSelectorWidth(25); 
    obj.setSelectorVisible(true);
    obj.setSelectorTemplate(new AW.Templates.CheckedItem); 
    obj.setSelectorResizable(true);

    document.write(obj);
    data.request();
  </SCRIPT>                                                                                                       
</BODY>                                                                                                           
</HTML>
Mike
February 20,
Sorry, to be more clear. The first problem is when trying to resize a column by mouse.

At this point I'm having to rollback to 2.0.2 but would like to use the newer version if anyone has any ideas.

Thanks
Mike
February 21,
Also, I remembered my other problem. On a given grid, when I use the following statement:

obj.getCellTemplate().setEvent("oncontextmenu", function() {
     // random context menu code
    });


In versions prioir to 2.5.1, I was able to do just this. However, with 2.5.1, now I am having to include:

event.returnValue = false;


If I don't include this extra line it is opening the IE context menu on top of mine. Also, by default, the browser context menus seem to be working by default which they didn't use to.
Mike
February 21,
Mike,

this is a bug in AW 2.5.1 - it will be corrected in the next bug-fix release. Here is a possible workaround -

/datagrid.21839/selector-resize-bug.html
Alex (ActiveWidgets)
February 21,
In AW 2.0 the right click menus were disabled. In AW 2.5 they allow end user to copy/paste cell content.
Alex (ActiveWidgets)
February 21,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.