Flex-grid row dynamically loading

Posted by: kun.leeing on 27 January 2021, 1:29 am EST

  • Posted 27 January 2021, 1:29 am EST

    Hi guys,

    Just a quick question. Can flex-grid do dynamic row loading?

    like by default the all of the rows folded, then whenever user click the collapse button +, then only load that row for the latest value?

    <wj-flex-grid #flex

    class=“nopadding gridheight gridwidth”

    [isReadOnly]=“true”

    [itemsSource]=“instancesFiltered”

    [headersVisibility]=“‘Column’”

    allowDragging=“None”

    allowResizing=“None”

    [allowSorting]=“false”

    [childItemsPath]=“‘children’”

    [autoGenerateColumns]=false

    [selectionMode]=“‘Row’”

    [itemFormatter]=“itemFormatter”

    (selectionChanged)=“onSelectionChanged($event)”

    (itemsSourceChanged)=“onSourceChanged($event)”>

    Could someone help?

    Thanks in advance.

  • Posted 28 January 2021, 5:58 am EST

    Hi Kun,

    You can use the groupCollapsedChanged event to load the rows dynamically. Please refer to the demo link below for reference:

    https://www.grapecity.com/wijmo/demos/Grid/TreeGrid/LazyLoading/angular

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels