Reputation: 187
I have lazy loaded combo in ExtJs form. Form data are loaded to form from grid store by form.loadRecord(). The lazy combo items are pairs 'value' => 'DisplayedName'
and of course each of records in grid store has already its own 'valuexyz'
to be set to combo after the record is loaded to form. The problem is that when the record is loaded to form, there are no items in combo yet (combo is lazy, and its items are loaded only when it is clicked) a so combo cannot to display proper 'DisplayNameXyz'
corresponding to 'valuexyz'
of loaded record. Even if combo get loaded, it is paged (by 25 items per page) and so it is quite possible that the record 'valuexyz'
for combo will not be included in the first page of loaded combo items. Combo stays empty.
Is there a solution for this?
I have found this answer but it is quite brief and I'm not sure even if it is correct and how to implement it.
Upvotes: 1
Views: 964
Reputation: 1600
If you need data to exist in the combobox store that may not be loaded yet due to paging, then you have to get rid of the paging.
Upvotes: 1