2 Replies Latest reply on Nov 12, 2008 3:23 PM by ntsiii

    datagrid column click

    phil1943 Level 1
      I have a datagrid with a checkbox column. When I click on the checkbox I want to find out the value of one of the other columns.
      What sort of code would I need to accomplish that ?

      Thanks kindly for any help.
        • 1. Re: datagrid column click
          ntsiii Level 3
          Have your checkbox dispatch a bubbling event.

          Listen for that event in the scope that includes the DataGrid dataProvider.

          Use DataGrid.selectedItem to get the item then you can access any property/column of that you want.

          The click event handler probably also provides the row index, so yo could fine the item that way as well.

          Tracy
          • 2. Re: datagrid column click
            ntsiii Level 3
            Also, you could work within the checkbox item renderer itself. It has access to the "data" property which is a reference to the current item.

            Tracy