//加载成功之后,选定并获取首行数据 onLoadSuccess:function(data){ alert("grid加载成功"); var rows=$('test').datagrid("getRows"); if (rows.length > 0) { $('test').datagrid('selectRow',0);//grid加载完成后自动选中第一行 var row=$('test').datagrid("getSelections&q…
服务端: string pseries = context.Request["ajaxSearch"].ToString().Trim(); var jsonMap = new Dictionary<string, object>(); StringBuilder sb = new StringBuilder(); sb.AppendFormat("select * from [DB].[dbo].[config] where {0}", pseri…