In the click listener of the first grid, you should determine which row or Record of the second Grid you need to highlight. Once you do this, you can highlight the row of the second grid by calling the appropriate select* method from its RowSelectionModel.
For example : http://www.gwt-ext.com/docs/2.0.4/com/gwtext/client/widgets/grid/RowSelectionModel.html#selectRow(int) If your second grid is using a CellCelectionModel, you can call CellSelectionModel.html#select(rowIndex, colIndex) http://www.gwt-ext.com/docs/2.0.4/com/gwtext/client/widgets/grid/CellSelectionModel.html#select(int,%20int) Sanjiv On Tue, Aug 26, 2008 at 2:54 PM, aviral <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have recently started using GWT and GWT-EXT and still in the > learning mode. > > I have 2 GridPanels and the first of them has a listener attached to > it. I have to listen to single-clicks on the cells in the first panel > and highlight some of the cells in the second grid. Here's the code > snippet. > > > ------------------------------------------------------------------------------------------------------------------------------------------ > final GridPanel clientsGridPanel = new GridPanel();//This is panel 1. > final GridPanel matchingStocksPanel = new GridPanel();//This is panel > 2. > > ... > ... > clientsGridPanel.addGridCellListener(new GridCellListener() { > public void onCellClick(GridPanel grid, int rowIndex, int > colindex, EventObject e) { > //Here I have to show highlight some of the matching > stocks in the second grid. > } > > > ------------------------------------------------------------------------------------------------------------------------------------------ > > Appreciate all help!! > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
