Announcement

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

  • Isomorphic
    replied
    Hi hangtra
    There is an attribute "selectOnExpandRecord" to control this. If you add appGrid.setSelectOnExpandRecord(false); to your code you should be good to go

    Thanks
    Isomorphic Software
    Last edited by Isomorphic; 4 May 2022, 10:18.

    Leave a comment:


  • How to disable auto-selection of ListGrid expanded row?

    Hi,

    I am using SmartGwtee v12.1p_2022-03-03. I have a ListGrid with expand rows and multiple selection using checkbox. Whenever a row of the ListGrid is expanded, it is automatically selected. I would like to know if there's a way to disable that auto-selection so that a row is selected only when the checkbox is clicked.


    ListGrid appGrid = new ListGrid() {
    @Override
    protected Canvas getExpansionComponent(ListGridRecord record) {
    Canvas canvas = super.getExpansionComponent(record);
    canvas.setMargin(5);
    return canvas;
    }
    };
    appGrid.setWidth(600);
    appGrid.setHeight(500);
    appGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
    appGrid.setShowAllRecords(true);
    appGrid.setCanExpandRecords(true);


    Thank you & regards,

    Hang
Working...
X