PDA

View Full Version : Columns in Grid


meadmkaer1977
05-10-2004, 04:55 AM
I have a Grid in which I would like to check what column is clicked, not just the row. Within my grid I have 6 columns, where clicked on three of the would cause a modal dialog to pop up. How can I check that?

Any ideas woulod be appreciated.

TIA

Mike B

antun
05-10-2004, 08:36 AM
I don't think the grid component supports that kind of selection right now - I have filed a feature request for that. However you could write your own tabular structure that has custom behaviors for different columns - it's not hard at all. Do a search on these forums for grid/datagrid, and you'll see what I mean.

-Antun

adam
05-10-2004, 01:47 PM
The easiest way to do this would be to use a gridcolumn, and to add the behavior you want to each column where you want this behavior, like this:



...
<gridcolumn>Alert column
<text datapath="@something">
<method event="onclick">
myalert.open();
</method>
</text>
</gridcolumn>



Here's a link to the gridcolumn docs:
http://laszlosystems.com/lps/docs/lzx-reference/lz-gridcolumn.html