I have array object in which there is information about List Grid Items which is coming from database .I want to make clone object(new object) of that item List component so that i can use it without changing previous object.
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"}
]}) ;
Now countryList is the ID for the ListGrid component .
Let us suppose that this Grid has possess some values and i want to put some other values like values from database and there is a condition that we don't have to override or change previous values.So we need to create a new object of countryList .
How can we achieve this?
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"}
]}) ;
Now countryList is the ID for the ListGrid component .
Let us suppose that this Grid has possess some values and i want to put some other values like values from database and there is a condition that we don't have to override or change previous values.So we need to create a new object of countryList .
How can we achieve this?
Comment