Hi,
Currenly I'm trying to select particular rows and ignore other rows. I tried returning false in the selectionChanged method. This works fine by not selecting the row. But if I move my mouse cursor over the row it selects the row. Let me know if I'm missing something here. I've included a demo code below.
[code]
isc.ListGrid.create({
ID: "countryList",
width:500, height:224, alternateRecordStyles:true, showAllRecords:true,
data: countryData,
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"}
],
selectionType: "multiple",
selectionChanged:function ()
{
if (countryList.getFocusRow () > 5)
{
alert (countryList.getFocusRow ());
return false;
}
return this.Super ("selectionChanged", arguments);
}
})
isc.ListGrid.create({
ID: "selectedCountries",
width:250, height:100, top:250, alternateRecordStyles:true, showAllRecords:true,
emptyMessage: "<br>nothing selected</b>",
fields:[
{name:"countryName", title:"Selected countries"}
]
})
[\code]
Currenly I'm trying to select particular rows and ignore other rows. I tried returning false in the selectionChanged method. This works fine by not selecting the row. But if I move my mouse cursor over the row it selects the row. Let me know if I'm missing something here. I've included a demo code below.
[code]
isc.ListGrid.create({
ID: "countryList",
width:500, height:224, alternateRecordStyles:true, showAllRecords:true,
data: countryData,
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"}
],
selectionType: "multiple",
selectionChanged:function ()
{
if (countryList.getFocusRow () > 5)
{
alert (countryList.getFocusRow ());
return false;
}
return this.Super ("selectionChanged", arguments);
}
})
isc.ListGrid.create({
ID: "selectedCountries",
width:250, height:100, top:250, alternateRecordStyles:true, showAllRecords:true,
emptyMessage: "<br>nothing selected</b>",
fields:[
{name:"countryName", title:"Selected countries"}
]
})
[\code]
Comment