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         }
  • 相关阅读:
    UVA 11997 K Smallest Sums
    POJ 1007 DNA Sorting
    POJ 3669 Meteor Shower
    POJ 2376 Cleaning Shifts
    POJ 3050 Hopscotch
    操作系统第6次实验报告:使用信号量解决进程互斥访问
    操作系统第5次实验报告:内存管理
    操作系统第4次实验报告:文件系统
    操作系统第3次实验报告:管道
    操作系统第2次实验报告:创建进程
  • 原文地址:https://www.cnblogs.com/chenxiao/p/2735407.html
Copyright © 2011-2022 走看看