Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[ExtJS 4.1] Rowexpander and Grid. Expand the specified item.

 
David Motrovsky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[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."

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic