:: Forum >>

Grid - lost focus.

Hi!

I've just found your incredible "component".
It looks that I could use it in my oncoming project.

For now i've got one question:
my script is mostly a copy of basic.html, at the and of this file i added somethig like this:
<script>
function testowy()
{
myData = [
["ASFT","Â¥icrosoft Corporation", "314,571.156", "32,187.000", "55000"],
["Â¥RCL", "Aracle Corporation", "62,615.266", "9,519.000", "40650"],
["ŒAP", "ŒAP AG (ADR)", "40,986.328", "8,296.420", "28961"],
["Â¥RCL", "Zracle Corporation", "62,615.266", "9,519.000", "40650"]
];

obj.setRowCount(4);
obj.setColumnCount(5);
obj.setSelectionIndex(1);

obj.refresh();
}

</script>
<input type="button" value="o'key" onClick="javascript: testowy();this.blur();">

My intention is simply reload "obj" with new dataset (seems to work), but after this action grid is loosing "focus" - i have to click on some row to get it back. After reloading i'd like to continue work navigating keyboard only...

Any solution?

thx a lot for your job.
Konrad
Tuesday, March 16, 2004
This trick should work in IE

...
this.refresh();
this.element().focus();

I don't know the solution for Mozilla yet.
Alex (ActiveWidgets)
Wednesday, March 17, 2004
It looks like it'sn't working correctly when the grid is in a div ?
I can't give it the focus in this case (in a div or iframe) as it's working when written out of the div.

Another thx for your job
Emmanuel
Tuesday, March 23, 2004
Sorry, my last post was wrong. I found a case where it works correctly, I just have to understand why it's not ok in the other case.
Emmanuel
Tuesday, March 23, 2004
How to focus the cursor into the grid cell
jp
Friday, January 20, 2006

This topic is archived.


Back to support forum

Forum search