【发布时间】:2016-05-13 07:39:21
【问题描述】:
我想在 Smart Client 中创建一个 ListGrid 组件的对象。
isc.ListGrid.create({
ID: "countryList",
width:500, height:224, top:50, alternateRecordStyles:true,
fields:[
{name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
{name:"countryName", title:"Country"},
{name:"capital", title:"Capital"},
{name:"continent", title:"Continent"}
]}) ;
现在 countryList 是 ListGrid 组件的 ID。
让我们假设这个 Grid 拥有一些值,我想放入一些其他值,比如数据库中的值,并且有一个条件是我们不必覆盖或更改以前的值。所以我们需要创建一个新的countryList 的对象。
我们怎样才能做到这一点?
【问题讨论】:
标签: smartclient