简体   繁体   English

ExtJs组合显示场

[英]ExtJs Combo display field

I have a some combos on window, I had set valuefield: DID and displayfield as Name and set dataIndex Property as ID ,problem is some times its display name and some times display Id .我在 window 上有一些组合,我将valuefield: DIDdisplayfieldName并将dataIndex Property 设置为ID ,问题有时是它的显示名称,有时是显示Id

So how to set only name as displayed (dataIndex).那么如何仅将名称设置为显示(dataIndex)。

Thanks In Advance提前致谢

if you see an ID instead of name, there is two possibility如果您看到的是 ID 而不是姓名,则有两种可能

  • store isn't loaded yet.商店尚未加载。
  • given ID not found in the store在商店中找不到给定的 ID

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM