Using BoundList as widget

落花浮王杯 提交于 2019-12-12 03:43:02

问题


I have an extended bound list, and I use it as a widget. Get/set value and other works good, but: How can I add a field label before it? Example of set value:

setValue: function (v) {
    this.value = v;
    // TODO select selected
    var sm = this.getSelectionModel();
    var store = this.getStore();
    var rec = store.findRecord(this.valueField, v);
    sm.select(rec);
},

Can you help me? Or is the only solution that I have to put this bounding list in a panel?


回答1:


The easiest way to get around this is to put it inside a FieldContainer.



来源:https://stackoverflow.com/questions/16669946/using-boundlist-as-widget

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!