开发者

ExtJs remoteCombo on editorgrid

开发者 https://www.devze.com 2023-02-22 08:56 出处:网络
okay, this time it is a remote combo. I have both cityID (Guid) & CityName(text) fields in the grids store.

okay, this time it is a remote combo.

I have both cityID (Guid) & CityName(text) fields in the grids store.

Grid column is set on the CityId field with a ComboBox editor with a remote store, CityName field is not used.

So how ca开发者_如何学JAVAn I deal with Id/Value issue.

So far, I added a renderer function for the CityId column, which just returns CityName, but if you try to edit the cell and ComboBox activates, you just see the Guid of the city. I am sure this is asked many times but I cannot find a clear and documented solution. Thanks for help.


Code would definitely help... but make sure you are using the displayField and valueField settings on your combobox to associate the correct fields in the store.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号