Take the Grid/Frozen Columns/Editing sample. Set the second column to be frozen as well, like so:
Now click into the category field. The non-frozen part will be scrolled to the right end. The user has to scroll back to continue editing.
Code:
isc.ListGrid.create({
ID: "supplyList",
width:500, height:224,
dataSource: supplyItem,
canEdit:true,
canFreezeFields:true,
fields:[
{name:"itemName", frozen:true, width:150},
{name:"category", frozen: true, width:100},
{name:"SKU", width:100},
{name:"units", width:80},
{name:"description", width:250}
]
})
supplyList.fetchData({}, "supplyList.startEditing(0,0)");