Coolite 中GridView点击行中的按钮时跳转至不同的页面
2010-12-12 12:03
399 查看
效果图:
代码
代码
<ext:GridPanel ID="GridPanel1" Height="475" StoreID="Store1" runat="server" > <ColumnModel ID="ColumnModelTitle" IDMode="Legacy" Height="200" runat="server"> <Columns> <ext:ImageCommandColumn Width="70"> <Commands> <ext:ImageCommand CommandName="butPhone" Icon="Telephone"> <ToolTip Text="电话业务" /> </ext:ImageCommand > <ext:ImageCommand></ext:ImageCommand> <ext:ImageCommand CommandName="butCustomer" Icon="UserEdit"> <ToolTip Text="客户详情" /> </ext:ImageCommand > </Commands> </ext:ImageCommandColumn > <ext:Column ColumnID="NetUserName" DataIndex="NetUserName" Header="客户帐号" Sortable="true"/> <ext:Column ColumnID="CustomerName" DataIndex="CustomerName" Header="客户姓名" Sortable="true"/> <ext:Column ColumnID="TelePhone" DataIndex="TelePhone" Header="手机" Sortable="false"/> <ext:Column ColumnID="Mobil" DataIndex="Mobil" Header="电话" Sortable="false" Width="100"/> </Columns> </ColumnModel> <Listeners> <Command Handler="if(command=='butPhone'){location.href='CallIn.aspx?NetUserName='+record.data.NetUserName;} else {location.href='Customer.aspx?NetUserName='+record.data.NetUserName;}" /> </Listeners> <SelectionModel> <ext:RowSelectionModel SelectedRecordID="id" ID="RowSelectionModel1" runat="server"> <CustomConfig> <ext:ConfigItem Name="checkOnly" Value="true" Mode="Raw" /> </CustomConfig> </ext:RowSelectionModel> </SelectionModel> <LoadMask ShowMask="true" Msg="Load..."/> </ext:GridPanel>
相关文章推荐
- thinkPHP传数组到模板页面volist每一列加一个button,点击按钮携带参数传给JS函数,跳转到不同的方法
- storyboard点击一个按钮跳转到不同的控制器
- javascript笔记——点击按钮(或超链接)如何跳转到另外一个页面并执行目标页面的js函数
- layer弹出层的内容页点击按钮跳转到新的页面问题
- PHP——0128练习相关2——js点击button按钮跳转到另一个新页面
- (iOS开发)点击tabbar中的按钮显示首页,再如何跳转页面
- 在项目中,点击“删除”按钮后,跳转到哪个页面?又该如何设置?
- 当点击“新增”或“修改"按钮进行跳转后,又想回到原来的页面?
- OAF学习笔记-5-点击按钮页面跳转
- 图片轮播》结束跳出按钮》点击跳转页面
- window里面点击一个button按钮实现页面跳转???
- 点击不同的按钮把同一个表单提交到不同的页面处理的方法
- 点击按钮或链接 不跳转刷新页面
- 点击按钮页面跳转
- OAF学习笔记-5-点击按钮页面跳转
- android重写webview长按时选择文字然后点击搜索按钮的事件,默认是chrome接受点击事件,现在跳转到360搜索页面
- Gridview中点击编辑实现页面跳转的几种方式总结
- js通过点击一个按钮跳转到一个查询页面--window.showModalDialog
- asp.net - GridView根据linkButton值不同跳转不同页面
- js点击button按钮跳转到另一个新页面