EXT.net GridPanel行双击响应事件

                <View>
                    <ext:GridView ID="GridView1" runat="server" ForceFit="true" />
                </View>
                <SelectionModel>
                    <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="false" >
                    </ext:RowSelectionModel>
                </SelectionModel>
                <Listeners><DblClick Handler="alert('2587')" /></Listeners>

 

 

跟列表结合获得值

                     <Listeners>
                            <DblClick Handler="
                               var ID=Ext.getCmp('GridPanel1').getSelectionModel().getSelected().data.ID;
                               var Name =Ext.getCmp('GridPanel1').getSelectionModel().getSelected().data.SiteName;
                                 top.addTab('Site_'+ID,Name,'Pages/site/SiteDetail.aspx?ID='+ID);
                              " />
                        </Listeners>

posted @ 2012-02-07 14:52  踏浪帅  阅读(1327)  评论(0编辑  收藏  举报