SmartClient Version: v13.1p_2025-07-24/AllModules Development Only (built 2025-07-24)
Hi, I have a question about autoFit in grids. Using the test case below, I noticed that when I edit a record, the auto-fit width seems to consider the space needed for editing, at least for the date field:

If this behavior is actually intended, it's pretty cool. Is it configurable by any chance?
Also, I see that there isn't a similar behavior for selectItem or numeric values:

While I must say that for the selectItem this is not really a problem, I was thinking that maybe adding a little extra space, to account for the padding in the textBox, could make editing more comfortable. What do you think?
Hi, I have a question about autoFit in grids. Using the test case below, I noticed that when I edit a record, the auto-fit width seems to consider the space needed for editing, at least for the date field:
If this behavior is actually intended, it's pretty cool. Is it configurable by any chance?
Also, I see that there isn't a similar behavior for selectItem or numeric values:
While I must say that for the selectItem this is not really a problem, I was thinking that maybe adding a little extra space, to account for the padding in the textBox, could make editing more comfortable. What do you think?
Code:
isc.ListGrid.create({
ID: "countryList",
width:550, height:224,
dataSource: countryDS,
fields:[
{autoFit:"both", name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/24/", imageURLSuffix:".png", canEdit:false},
{autoFit:"both", name:"countryName"},
{autoFit:"both", name:"continent"},
{autoFit:"both", name:"member_g8"},
{autoFit:"both", name:"population",
validators:[
{type:"integerRange", min:1}
]
},
{autoFit:"both", name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click"
})
Comment