葡萄插件整理1 常用方法

・dataKey Field
 Javascript
 $("#element").wijgrid({ columns: [{ dataKey: "ProductID" }]});
・doRefresh
 $("#element").wijgrid("doRefresh");
・setSize
 Javascript
 $("#element").wijgrid("setSize", 200, 200);
・staticColumnIndex
 Javascript
 $("#element").wijgrid({ staticColumnIndex: -1 });
・staticColumnsAlignment
 Javascript
 $("#element").wijgrid({ staticColumnsAlignment: "left" });
 Default value: 'left'
 
 Gets or sets the alignment of the static columns area. Possible values are "left", "right".


・实例
<script type="text/javascript">
    requirejs.config({
        baseUrl: "http://cdn.wijmo.com/amd-js/",
            paths: {
                "jquery": "jquery-1.9.1.min",
                "jquery-ui": "jquery-ui-1.10.1.custom.min",
                "jquery.ui": "jquery-ui",
                "jquery.mousewheel": "jquery.mousewheel.min",
                "globalize": "globalize.min",
                "bootstrap": "bootstrap.min", //Needed if you use Bootstrap.
                "knockout": "knockout-2.2.0" //Needed if you use Knockout.
            }
    });
</script>


<script id="scriptInit" type="text/javascript">
    require(["wijmo.wijgrid"], function () {
    $(document).ready(function () {
        $("#wijgrid").wijgrid({
            allowSorting: true,
            allowPaging: true,
            pageSize: 3,
            data: [
                [27, 'Canada', 'Adams, Craig', 'RW'],
                [43, 'Canada', 'Boucher, Philippe', 'D', 'R'],
                [24, 'Canada', 'Cooke, Matt', 'LW', 'L'],
                [87, 'Canada', 'Crosby, Sidney (C)', 'C', 'L'],
                [1, 'United States', 'Curry, John', 'G', 'L'],
            ],
            columns: [
                {headerText: "Number"},
                {headerText: "Nationality"},
                {headerText: "Player"},
                {headerText: "Position"}
            ]
        });
    });
    });
</script>


常用网址:

http://demo.gcpowertools.com.cn/ComponentOne/ASPNET/ControlExplorer/C1GridView/Overview.aspx

http://helpcentral.componentone.com/nethelp/c1gridviewwijmo/

http://wijmo.gcpowertools.com.cn/docs/wijmo/


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值