Jquery UI combogrid Query
Jquery:
View code
1 $ ("# stallname "). combogrid ({2 panelwidth: 450, 3 idfield: 'value', 4 textfield: 'text', 5 pagesize: 10, // number of records displayed on each page, the default value is 10 6 pagelist: [10]. // you can set the list of records per page. 7 method: 'post', 8 fit: True, // The automatic size is 9 rownumbers: true, // serial number 10 fitcolumns: True, 11 striped: True, 12 Editable: false, 13 pagination: True, // Do You Want To pagate 14 urls: '/detectinfo/archivesinfo? Name = '+ pname, 15 columns: [[16 {field: 'value', Title: 'vendor No.', width: 60}, 17 {field: 'text ', title: 'vendor name', width: 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 }