能否给个具体事例?
直接在列下设置maxLength,画面上的flexgrid就显示不出来了。
$(document).ready(function () {
var grid = new wijmo.grid.FlexGrid('#gs00FlexGrid');
var data = [];
for (var i = 0; i < 12; i++) {
data.push({
ID: "0001",
NM: "XXXXXX"
});
}
var cvTrackingChanges = new wijmo.collections.CollectionView(data);
grid.headersVisibility = wijmo.grid.HeadersVisibility.Column;
grid.initialize({
autoGenerateColumns: false,
columns: [
{ header: 'ID', binding: 'ID', width:70, isReadOnly:false, maxLength:1},
{ header: 'NAME', binding: 'NM', width:70, isReadOnly:false, maxLength:5}
],
itemsSource: cvTrackingChanges,
});
grid.selectionMode = "Row";
})
</script> |