找回密码
 立即注册

QQ登录

只需一步,快速开始

yzwk

最新发帖
JeffryLI
葡萄城公司职员   /  发表于:2018-11-2 09:23:01
地板
您好,是这样的在wijmo下 是不需要手动去画表格的,您只要将数据给控件,数据会被解析并渲染的到界面上,所以您给的写法,在wijmojs里面用不到,关于您给的需求,您可以参考我上面发给您的链接。
请点击评分,对我5分评价,谢谢!

葡萄城控件服务团队
官方网站: https://www.grapecity.com.cn/developer
回复 使用道具 举报
yzwk
注册会员   /  发表于:2018-11-1 11:04:44
板凳
JeffryLI 发表于 2018-11-1 10:04
您好,关于您说的三个问题回复如下:
1、首先如您所说,itemformatter格式化单元格可以实现超链接
2、我 ...

以前用纯table的时候如下绑定
<table class="table table-hover">
                                    <thead>
                                        <tr>
                                            <th width="25"><input ng-model="page1.selected" ng-change="page1.changeSelectAll();" type="checkbox" /></th>
                                            <th>#</th>
                                            <th>Invoice No</th>
                                            <th>Order No</th>
                                            <th>客户名称</th>
                                            <th>总金额</th>
                                            <th>总利润</th>
                                            <th>总体积</th>
                                            <th>总净重</th>
                                            <th>总毛重</th>
                                            <th>创建日期</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr ng-repeat="item in page1.items">
                                            <td class="text-center"><input type="checkbox" ng-change="page1.changeSelectItem(item);" ng-model="item.selected"></td>
                                            <td>{{item.$rowId}}</td>
                                            <td ng-bind="item.INVOICE_NO"></td>
                                            <td ng-bind="item.ORDER_NO"></td>
                                            <td ng-bind="item.CONSIGNEE_NAME"></td>
                                            <td ng-bind="item.TOTAL_AMOUNT_US"></td>
                                            <td ng-bind="item.TOTAL_PROFIT"></td>
                                            <td ng-bind="item.TOTAL_VOLUME"></td>
                                            <td ng-bind="item.TOTAL_NET_WEIGHT"></td>
                                            <td ng-bind="item.TOTAL_GROSS_WEIGHT"></td>
                                            <td ng-bind="item.GMT_CREATE|date:'yyyy-MM-dd HH:mm:ss'"></td>
                                            <td>
                                                <a class="text-info" ui-sref="cts.sale.pi.detail({id:item.ID})">[详情]</a>
                                                <a class="text-info" ui-sref="cts.sale.pi.editor({id:item.ID})">[编辑]</a>,操作列中的详情、编辑这种用anguarljs 1.x ui-route ui-sref 机制,目前我采用flexgrid要如何实现? 不知是否明白我的意思?
回复 使用道具 举报
JeffryLI
葡萄城公司职员   /  发表于:2018-11-1 10:04:54
沙发
您好,关于您说的三个问题回复如下:
1、首先如您所说,itemformatter格式化单元格可以实现超链接
2、我们可以在超链上增加事件,可实现超链接的跳转
3、如果是通过Itemformatter 实现超链接,点击单元格会选中,如果不想被选中,您可以参考如下地址的实现方式:
http://demo.grapecity.com.cn/wijmo5/learningwijmo/#ILYKp
以上 ,请参考。
请点击评分,对我5分评价,谢谢!

葡萄城控件服务团队
官方网站: https://www.grapecity.com.cn/developer
回复 使用道具 举报
12
您需要登录后才可以回帖 登录 | 立即注册
返回顶部