Page 1 of 1

DG Table: Is it possible to edit the column template itself (not behavior) by script?

Posted: Mon May 20, 2019 1:14 pm
by sritcp
The default column template in a Datagrid table is set up such that each cell contains an editable field ("field 1 of me").
I'd like a DG table where each cell has only a button.
I can use the IDE to edit the column template for each column, delete the field, and add a button.
My question is, is there a way to do this by script, in one go, by modifying some handler in the innards of Datagrid?

Thanks,
Sri

Re: DG Table: Is it possible to edit the column template itself (not behavior) by script?

Posted: Mon May 20, 2019 1:35 pm
by bogs
See if this lesson helps you at all Sri. Obviously you'll have to change some of the code, but it should get you close to an idea of what needs to be done.

There is also a lesson with the properties of a Dg.

Re: DG Table: Is it possible to edit the column template itself (not behavior) by script?

Posted: Mon May 20, 2019 2:01 pm
by sritcp
Thanks, bogs!
Looks like just the thing I need!

Regards,
Sri

Re: DG Table: Is it possible to edit the column template itself (not behavior) by script?

Posted: Mon May 20, 2019 2:23 pm
by bogs
Glad it helps you out Sri :D

Re: DG Table: Is it possible to edit the column template itself (not behavior) by script?

Posted: Mon May 20, 2019 9:48 pm
by Klaus
Since LC is actually written in LC, we can script (almost*) everything!

*Not sure about the LCB stuff.