Announcement

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

    Why does mouseover trigger createRecordComponent() on a TreeGrid?

    We just upgraded to SmartGWT 3.0p, not sure if previous version had the same behavior. I noticed while debugging that simply rolling a mouse over any record(s) in a TreeGrid triggers a call to createRecordComponent(). Is this the needed behavior or is it a bug? I have no MouseOver handlers in the code.

    To reproduce, build a simple TreeGrid with
    Code:
    treeGrid.setShowRecordComponents(true);
    treeGrid.setShowRecordComponentsByCell(true);
    @Override 
    createRecordComponent(final ListGridRecord listGridRecord, Integer colNum)
    Set a break point within the method or add some output like println() or SC.say(). Move your mouse pointer over the records in the TreeGrid.

    thanks.

    #2
    We're not reproducing this. You should expect a createRecordComponent() call as new nodes are revealed, before any mouseOver happens, but mouseOver won't normally cause a new call unless you've got code that ultimately calls refreshRecordComponent(). This could include an override to getBaseStyle() or similar methods that are called on mouseOver.

    Comment

    Working...
    X