Announcement

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

    ListGrid.canExpandRecords functionality

    Hi there,

    We are looking to use the Expansion capability that comes with ListGrid.canExpandRecords so I may have a few questions in this thread. First off, is there a way to style each row individually so that some rows show the ability to expand based on certain record properties while other rows do not? All the examples show all rows expanding and we want to limit it to only some rows. I don't see any obvious APIs for that.

    #2
    See the doc for ListGrid.canExpandRecord(record, rowNum) - it links to several other topics too

    Comment


      #3
      Thank you, I should have seen that during my search earlier but missed it somehow.

      So, next question. We want the detail grid we show to match the fields displayed in the parent grid exactly. The idea is that the record in the ListGrid is a summary of the records we are showing in the detail section. We'd also want to update the detail grid view state when the parent grid's view state is updated either by the user manually changing individual fields or by applying view states. Is that feasible? Or, should we be investigating a way for some of our ListGrid records to act like TreeGrid nodes somehow? I'm just not sure how we could make certain ListGrid records into TreeGrid nodes and how that would work if the user decided to apply grouping on their ListGrid.

      Comment


        #4
        Sure, that's feasible. You can return whatever component you want from getExpansionComponent(), and retrieve it again via getCurrentExpansionComponent(), so this subsystem can be used for basically any kind of display.

        Comment

        Working...
        X