Announcement

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

    How to Expand only few rows in Smart Gwt Grid ?

    See in the image the record with country india should not be expanded, I want some thing like the image
    Attached Files

    #2
    Hello, see ListGridRecord.canExpand, and also ListGrid.canExpandRecord

    Comment


      #3
      Hi Claudio,

      I have tried these options , but this is for the whole grid, its not working for specific record.
      Even i have tried the below solution but its not working public boolean canExpandRecord(ListGridRecord record,int rowNum)

      Comment


        #4
        Hello, please note that I pointed you to ListGridRecord.canExpand, which of course is for specific records.

        Also, this is working in the showCase (#expansionRelatedRecordsFS sample):
        Code:
        isc.ListGrid.create({
            ID: "categoryList",
            width:650, height:300, 
            alternateRecordStyles:true,
            dataSource: supplyCategory,
            autoFetchData: true,
            canExpandRecords: true,
            expansionMode: "related",
            detailDS:"supplyItem",
            canExpandRecord:function(record, rowNum) {
              return record. categoryName !== 'Adhesives';
            }
        });

        Comment


          #5
          Thank you claudiobosticco , i got the solution. ListGridRecord.canExpand is working, thank you again.

          Comment

          Working...
          X