3.2.0

grid.onCellValidated = function(text, column, row) ISSUE

Hi, I have an intermitant ISSUE with the "text" parameter passed in the onCellValidated event ???

...
var str = new AW.Formats.String;
var num = new AW.Formats.Number;
num.setTextFormat("########");
var flt = new AW.Formats.Number;
flt.setTextFormat("$ #,###.##");
grid.setCellFormat([num, num, str, str, str, flt, num]);
...

// Col 1 (num) is the problem and under debugging shows the following within the onCellValidated event

grid.onCellValidated = function(text, column, row) {

User types 2 "text" shows "2"
User types 24 "text" shows "2"
User types 244 "text" shows "244"
User types 24.0 "text" shows "24.0"
User types 24, backspaces out 24, types again 24 "text" shows "24"

PLEASE HELP, I cannot force my user to type 24.0 or type, backspace, type again. The original cell data loaded was an integer.


Andy
March 29,
IE8 issue
Andy
March 29,
This is very very urgent - please respond with IE8 work around today.
Andy
March 30,
Further to the bug, it is not related to the onCellValidated / onCellEditEnded events but internal to AW.

I am very worried at the lack of response by the developers of this library.

I paid for this library, invested 4 months of development using this library.

And now, a few days before going live, find a very serious IE8 bug that renders everything useless.

My pleas for help have fallen on deaf ears.

As a paid registered user I demand an immediate work around for this serious bug !!!
Andy
March 30,
Andy,

This issue is due to the IE8 bug - the browser does not fire onpropertychange event on the second character for unknown reason. The problem only exists in ie8 'standards' mode and does not happen if you force IE7 compatibility mode. So if you need urgent fix I would suggest using IE7 compatibility mode for IE8 instead of IE8 'standards'.

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >

I am investigating this further for a proper solution and will publish it as soon as possible.
Alex (ActiveWidgets)
March 30,
Alex, Thank you for your response. I would have appreciated an earlier comment too.

As for <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >

I have implemented as follows

<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
<link href="./includes/aw.css" rel="stylesheet" type="text/css">
etc.

PROBLEM Still exists !!

Please advise.
Andy
March 30,
If you open IE8 developer tools (F12) does it show the 'Document Mode: IE7 Standards" in the top menu?
Alex (ActiveWidgets)
March 30,
Also my earlier post "How To Set Cell Focus Ready For Keyboard Input" was not answered either.

onCellValidated event I itterate grid rows then restore postion before return
...
grid.setCurrentRow(hold_current_row);
grid.setCurrentCol(1);
grid.focus();

PROBLEM: Grid Cell is no longer in focus so keyboard input is ignored UNLESS one mouse clicks the cell.

Please advise how to set focus to cell ready for keyboard input ?
Andy
March 30,
NO, it still shows Document Mode: "IE8 Standards"
Andy
March 30,
This may happen if you previously selected IE8 standards mode in developer tools menu - in this case the dropdown list will show "Document Mode: IE7 Standards (page default)" but the selected option will be "Document Mode: IE8 Standards". Goes to normal if you restart IE.

http://msdn.microsoft.com/en-us/library/cc817574.aspx
Alex (ActiveWidgets)
March 30,
Anyway, here is a better workaround which should work without changing to IE7 mode -

if (AW.ms8){

    AW._endEdit1 = AW._endEdit;
    AW._endEdit = function(){
        try {
            var obj = AW.object(AW._edit);
            var input = AW.element(AW._edit + "-box-edit");
            var text = obj.getControlProperty("text");
            if (input.value != text){
                obj.setControlProperty("text", input.value);
            }
            input = null;
            obj = null;
        }
        catch(err){
        }

        return AW._endEdit1();
    }
}

Alex (ActiveWidgets)
March 30,
Thank You Alex.

It took a while for me to test due to the many attempts by me to code around the problem (had to remove a lot of code) - it appears to resolve my problem so far - still testing.

It also seems to have resolved the "How To Set Cell Focus Ready For Keyboard Input" issue mentioned earlier.

I will continue to test.
Andy
March 30,

This topic is archived.

See also:


Back to support forum