PDA

View Full Version : Editor grid



bkraut
26 Jan 2010, 2:31 PM
How do you guys implement something like this?

You have a grid of records, where one column is a set of some other objects. The column editor is a combo.

The set config looks like this:



{
totalRecords: n
data: [{
id: 1,
name: 'n1'
},{
id: 2,
name: 'n2'
},
...
]
}


If your grid store has a reference (foreign key) to id field of the set and a name field is displayed in a grid instead of id, the renderer often leaves the column blank - as a grid store loads it can be loaded faster than the combo store, so renderer displays empty field. As both loads are asynchronous it is hard to ensure the load sequence.

How do you ensure the proper load order?