wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

Click on 'twistie' when editor open causes RTE #299

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create editable TreeGrid
2. Populate with data.
3. Open two levels.
4. Click to edit value in third level.
5. Click top level 'twistie' to close all.

What is the expected output? What do you see instead?
Tree should dispatch itemEditEnd on currently active cell and close tree.
We get an RTE.

What version of the product are you using? On what operating system?
Windows Vista
SDK 3.5.0.12683
flexlib (flex3) 2.5

Please provide any additional information below.

[Fault] exception, information=TypeError: Error #1009: Cannot access a
property or method of a null object reference.
This occurs on line 1446 in DataGrid.as

This only occurs when you click a 'twistie' and not another cell. If there
is no edit happening, this does not happen.

Original issue reported on code.google.com by cobraflo...@gmail.com on 24 Apr 2010 at 9:03

GoogleCodeExporter commented 8 years ago
A quick hack that works :-

overide public function dispatchTreeEvent(...){
    // Setting enabled gets the datagrid to call endEdit() and invalidateDisplayList()
    enabled = true;
    super.dispatchTreeEvent(...);
}

Original comment by cobraflo...@gmail.com on 24 Apr 2010 at 11:06