Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ShowRollOverCanvas dynamic buttons

$
0
0
Hi all,

I have a listgrid and I am using showRollOverCanvas to show a list of buttons when mouse hovers on rows. I need to decide based on row data which button should be created. Is there any way to handle this ??
Code:

rollOverCanvasConstructor:isc.HLayout,
rollOverCanvasProperties:{
members:[
{ title:"+",
height:20, width:20},
{ title:"X",
click:"isc.say('Collapsed record:' + this.echo(this.parentElement.record))",
height:20, width:20}
]
}

For example, I would like to create buttons based on certain value of the record (if record.TYPE == "smthing" buttons array different than if record.TYPE == "smthingelse")

Thanks

Viewing all articles
Browse latest Browse all 4756

Trending Articles