show different item on selectionchange on a grid

前端 未结 2 1923
夕颜
夕颜 2020-12-21 16:44

i have a grid and a form, i need to show different items on the form each time we select a row on that grid

i ve been looking on how to do this, and found

2条回答
  •  渐次进展
    2020-12-21 17:09

    Try to following code in your grid.

            listeners:{
                    itemclick:function(view, record, item, index, e ) {
                    var v = record.get('firstName');
                    ....
                        ....
                         }
                      }
    

    firstName will be your dataindex of colums in your grid. You can get value of any field like this.

提交回复
热议问题