PDA

View Full Version : Is there any tutorial of create master detail grids?



bryanevil
24 Jun 2010, 12:34 AM
Hi All

Is there any tutorial of create master detail grids. What I want to have is two grids, one parent and one child, change the selected record in parent grid will refresh the child grid base on the parent grid's record ID.

Thanks
Bryan

Animal
24 Jun 2010, 12:54 AM
Not enough for a tutorial there really.

It would be a one liner.

Listen for the rowselect event in the parent grid, and reload the Store of the child grid in the handler.

bryanevil
24 Jun 2010, 1:08 AM
I know the step of listen the rowselect event in the parent grid, and reload the child grid's store. I saw them at the other example.

But how to pass the ID of the selected row of the parent grid , and ask the child grid's store to use this ID in the web service request? Could you give a sample example of this part?

Animal
24 Jun 2010, 1:25 AM
http://www.sencha.com/deploy/dev/docs/?class=Ext.grid.RowSelectionModel&member=getSelected