JavaRanch » Java Forums »
Engineering »
HTML, CSS and JavaScript
| Author |
[ExtJS 4.1] Rowexpander and Grid. Expand the specified item.
|
David Motrovsky
Greenhorn
Joined: Jun 20, 2012
Posts: 1
|
|
[ExtJS 4.1] Rowexpander and Grid. Expand the specified item.
Good day!
Need help ExtJS 4.1
There is a ComboBox. There is a Grid. Grid plugged plug rowexpander.
ComboBox and Grid take data from one array.
The purpose of the script: after selecting an item in the ComboBox - open the corresponding rowexpander in the grid.
That is, The user selects in ComboBox «Alcoa Inc» and in the field of Grid row with the name of the company «Alcoa Inc» rowexplander is disclosed.
Problem: I can not turn to the records in the table and call the event expandbody / collapsebody
After selecting a ComboBox'e I get the id of the selected item, which corresponds to the id record in Grid, but also how to use it, what would appeal - I can not understand.
grid.getView (). getNode (0) - got so appeal, but it's not something that would help me.
PS So far, the variables are declared as window.grid and window.simpleCombo to simplify debugging
The script:
Html code:
Tell me the solution, the second day of the "struggling against the wall."
|
 |
 |
|
|
subject: [ExtJS 4.1] Rowexpander and Grid. Expand the specified item.
|
|
|
|