Announcement

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

    Hide fields in listGrid related details

    I'm working on a listGrid that displays rows from one datasource and can expand to display related rows from a second datasource. I'd like to hide several of the detail fields by default, but I'm not finding the setting. I am able to hide fields manually in the gui though.

    I thought expansionDetailRelatedProperties was the ticket, but the code below displays all of the fields in the expansion regardless of whether I have hidden:true set or not.

    isc.ListGrid.create({
    ID:"phoneGrid",
    autoDraw:false,
    autoFetchData:true,
    dataSource:"phoneNumberAssignments",
    canExpandRecords:true,
    expansionMode:"related",
    detailDS:"cables",
    alternateRecordStyles:true,
    height:360,
    fields:[

    .....(omiting these fields from the posted code..)....

    expansionDetailRelatedProperties:{
    fields:[
    {
    hidden:true,
    name:"cableCloset"
    },
    {
    hidden:true,
    name:"cableNumber"
    },
    {
    hidden:true,
    name:"cablePairNumber"
    },
    {
    hidden:true,
    name:"cableType"
    },
    {
    hidden:true,
    name:"cableNotes"
    },
    {
    name:"roomNumber"
    },
    {
    name:"buildingNameShort"
    }
    ]
    }
    })


    Feels like I'm missing something simple...

    Thanks
    RP

    #2
    Ok I'm slow on the uptake.

    The property I was looking for is expansionRelatedProperties: not expansionDetailRelatedProperties:

    Sorry to bother.

    Comment

    Working...
    X