Announcement

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

    Freezing columns in a Grid

    Is there a way to freeze the first column in a grid so that it does not move when the grid is horizontally scrolled?

    Thanks

    Dev

    #2
    Frozen columns support

    Hi Dev -

    Complete frozen column support for the ListGrid is coming in SmartClient 6.0, but if you're willing to forgo inline editing of the frozen section of the grid, there are several ways to set this up in SmartClient 5.5 (the current version). One approach is to use two ListGrids. To see how this works, go to the Column Reorder Example on our website, paste the code below into the "JS" tab and click the "Try It" button to see a running example:

    Code:
    isc.ListGrid.create({
        ID: "frozenCols",
        width:150, height:200,
        data: countryData,
        fields:[
            {name:"countryCode", title:"Code", width:50},
            {name:"countryName", title:"Country"}
        ],
        canResizeFields: false,
        bodyOverflow: "hidden",
        leaveScrollbarGap: false,
        showRollOver: false
    });
    
    isc.ListGrid.create({
        ID: "scrollingCols",
        left:150, width:200, height:216,
        data: countryData,
        fields:[
            {name:"capital", title:"Capital", width:100},
            {name:"continent", title:"Continent", width:100},
            {name:"area", title:"Area", width:100},
            {name:"population", title:"Population", width:100}
        ],
        selection: frozenCols.selection,
        bodyScrolled: function (left, top) {
            this.Super("bodyScrolled", arguments);
            frozenCols.body.scrollTo(null, top);
        },
        showRollOver: false
    });
    The other approach is to use our CubeGrid component. To see a running example - check out the Interactive Analytics examples on our website. You can drag and drop the "Scenarios" button into the "Row Facets" grid to create an extra frozen column in the CubeGrid below.

    Comment


      #3
      frozen column support for the ListGrid

      Hi,

      Is frozen column support for the ListGrid there now in version 6.0? if yes, how to do that.

      Thank you,
      Mo

      Comment


        #4
        Hi Mo,

        It's not in 6.0, but coming in 6.1.

        Comment

        Working...
        X