zoukankan      html  css  js  c++  java
  • JQuery UI combogrid

    jquery ui  combogrid 查询
    jquery:
    View Code
     1 $("#StallName").combogrid({
     2         panelWidth: 450,
     3         idField: 'Value',
     4         textField: 'Text',
     5         pageSize: 10, //每页显示的记录条数,默认为10  
     6         pageList: [10], //可以设置每页记录条数的列表  
     7         method: 'post',
     8         fit: true, //自动大小 
     9         rownumbers: true, //序号 
    10         fitColumns: true,
    11         striped: true,
    12         editable: false,
    13         pagination: true, //是否分页 
    14         url: '/DetectInfo/ArchivesInfo?name=' + pName,
    15         columns: [[
    16          { field: 'Value', title: '摊主编号',  60 },
    17          { field: 'Text', title: '摊主名称',  60 },
    18            { field: 'GUID', hidden: true }
    19         ]],
    20         onDblClickRow: function (rowIndex, rowData) {
    21             if (rowData) {
    22                 StallNoValue(rowData);
    23             }
    24         },
    25         onClickRow: function (rowIndex, rowData) {
    26             if (rowData) {
    27                 StallNoValue(rowData);
    28             }
    29         }, keyHandler: {
    30 
    31             up: function () {
    32 
    33             },
    34             down: function () {
    35 
    36             },
    37             enter: function () {
    38 
    39             },
    40             query: function (q) {
    41               
    42                 $('#StallName').combogrid("grid").datagrid("reload", { 'keyword': q });
    43                 $('#StallName').combogrid("setValue", q);
    44             }
    45 
    46         }
    47     });

     .net:

      

    View Code
    1   public string ArchivesInfo()
    2         {
    3             string keyword = Request["keyword"] ?? string.Empty;
    4             int pageIndex = Convert.ToInt32(Request.Params["page"]);
    5             int rows = Convert.ToInt32(Request.Params["rows"]);
    6             var list = _IDetectInfoService.QueryArchivesInfo(pageIndex, rows, keyword, ConfigurationStatus.DeleteStatus);
    7             var result = helper.ToJson(list);
    8             return result;
    9         }
  • 相关阅读:
    #include <utility>
    Html的空格显示
    ExtJs自学教程(1):一切从API開始
    天黑的时候,我又想起那首歌
    citrix协议ICA技术原理
    约瑟夫环问题
    数据结构和算法设计专题之---八大内部排序
    HDU
    深入分析C++引用
    八大排序算法总结
  • 原文地址:https://www.cnblogs.com/chenxiao/p/2735407.html
Copyright © 2011-2022 走看看