Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid checkbox click problem

    I have discovered some very odd behavior with a TreeGrid using a checkbox selection type.

    I draw my Tree with the checkboxes just fine. I can click on the checkboxes to select / deselect them. When I wrote my own CellClickHandler I noticed that a checkbox click only fires the CellClickHandler after you've clicked the text of the item in the tree.

    To illustrate better:

    1) Make a checkbox style tree.
    2) Make a CellClickHandler on the tree
    3) Render the tree, click the checkbox. CellClickHandler not called.
    4) Click anywhere else other than the checkbox within the row (CellClickHandler called), then click the checkbox again and from now on the CellClickHandler is called every time when you click either text or checkboxes.

    This seems like a bug to me, but perhaps I'm missing something. Is there a way around this? I've even tried using the rowClick() method to simulate that click on the row, but it doesn't seem to flip whichever bit a real click is flipping.

    If you're curious, I'm doing to overwrite the functionality of cascadeSelection(). I want my tree to cascade up, but not cascade down.

    thanks

    edit: btw i downloaded the latest nightly open source build today to make sure this hadn't already been fixed
    Last edited by NewSmartGWTGuy; 9 Apr 2012, 13:43.

    #2
    Please list all your versions as the forums asks for.

    Can you show how to reproduce this with minimal modifications to a sample?

    Comment

    Working...
    X