3.2.0

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
March 16,
This trick should work in IE

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

I don't know the solution for Mozilla yet.
Alex (ActiveWidgets)
March 17,
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
March 23,
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
March 23,
How to focus the cursor into the grid cell
jp
January 20,

This topic is archived.

See also:


Back to support forum