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
Thanks
Dev
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
});
Comment