Datagrid - Reassigning the Behavior Script Button after copy

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Datagrid - Reassigning the Behavior Script Button after copy

Post by andyh1234 » Sat Apr 14, 2012 11:05 am

Hi,

Ive successfully managed to copy a data grid card and attach the visual layout parts it to a grid control using...

set the dgProp["Row Template"] of group "datagrid" of card "Select" to the long id of group "Row Template" of \
card tDataCardName of stack "Data Grid Templates 1334240479611"

However, although the layout works perfectly, the behaviour for the grid continues to use the code in the 'Behavior Script' button on the ordinal card.

Ive trawled through the docs, and forum and cannot see any links to this, does anyone know what I need to change to map the behaviour of the data grid to the button on the new card??

Post Reply