现在我做一个ext Combobox下拉框。我用store去填充,所有数据都返回正确。Combobox也能全部加载,但最后一个数据就是不显示出来。这个是返回的数据:
[{"PositionID":574,"PositionLevel":0,"Position":"促销员"},
{"PositionID":718,"PositionLevel":9,"Position":"配送商"},
{"PositionID":60,"PositionLevel":10,"Position":"经批业代"},
{"PositionID":581,"PositionLevel":10,"Position":"经销商"},
{"PositionID":711,"PositionLevel":10,"Position":"零售业代"},
{"PositionID":712,"PositionLevel":10,"Position":"零售助代"},
{"PositionID":713,"PositionLevel":10,"Position":"高级经批"},
{"PositionID":575,"PositionLevel":20,"Position":"业务主管"},
{"PositionID":597,"PositionLevel":40,"Position":"所长"},
{"PositionID":705,"PositionLevel":40,"Position":"内勤"},
{"PositionID":704,"PositionLevel":50,"Position":"分部经理"},
{"PositionID":702,"PositionLevel":60,"Position":"销售管理部主管"},
{"PositionID":703,"PositionLevel":60,"Position":"企划助理"},
{"PositionID":701,"PositionLevel":70,"Position":"企划经理"},
{"PositionID":61,"PositionLevel":70,"Position":"销售管理部经理"},
{"PositionID":719,"PositionLevel":70,"Position":"营业部经理"},
{"PositionID":596,"PositionLevel":80,"Position":"大区区总"},
{"PositionID":700,"PositionLevel":80,"Position":"大区销售副总"},
{"PositionID":710,"PositionLevel":89,"Position":"总经理"},
{"PositionID":699,"PositionLevel":90,"Position":"华丰管理员"},
{"PositionID":62,"PositionLevel":100,"Position":"客户管理员"}]
这个是效果图
其中的数据都在里面。但就是不显示最后一条数据,也就是不显示"客户管理员"
1,用firebug查看一下生产的html标签,看是没有加载进去(根本就没有生成标签),还是没有显示出来(生成标签,但是没有显示)
2,如果你去掉最后一个,那新的最后一个是否也显示不出来呢?
生成了标签,没有显示,去掉最后一个。那倒数第二个就是也不显示了。除非不出现下拉条
@qqmamiao: 如果你这个ext Combobox下拉框 只有一个item,那这仅有的一个显示吗?
我感觉是你的样式限制了下拉的显示!!