PDA

View Full Version : AdapterField and EditorGrid for nested elements



MartinElkjaer
1 Sep 2009, 9:50 AM
Hi,

I have these to classes in my code (remove getters and setters and some other for simplicity):

public class Company implements BeanModelTag{
....
List<Employee> emps = new ArrayList<Employee>();
String name;
.....
}

public class Employee implements BeanModelTag{
....
String name;
String email;
.....
}


I have a ListStore containing companies and a grid showing the Companies. What I want to do is have another Editable grid showing the Employes for the selected company.

I read the last post in this thread (http://extjs.com/forum/showthread.php?t=56783&highlight=adapterfield+grid), but I cannot figure out how to implement it.

A code example would be very nice :)

Best regards
Martin