I’m filling combos with data obtained via AJAX using dataUrl & buildSelect.
Previously (version 4.4), I used to retrieve the values when filling the grid and everything worked perfectly: The value was displayed in the grid, matched to corresponding combo in edit form and the key was posted. That behavior changed some time ago.
According to the docs of formatter:select:
the data should contain the keys but the values will be displayed in the grid.
This works, but only if the values of the combo are set before loading the grid, for example in editoptions:
{value:”1:One;2:Two”}
Using formatter:select with dataUrl produce blanks fields when grid is loaded. Since I didn’t open the edit form the formatter didnt’t have values to match.
I could use a promise to load the grid after all data sources for the combos are filled, but I’ll have to change all the grids loading.
There’s any workaround?
Thanks in advance!
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top