本帖最后由 smallbee00 于 2014-02-27 22:57:10 编辑

解决方案 »

  1.   


    $('#dg').datagrid('selectRow',index);/Select a row, the row index start with 0.
    //如果选择行之后滚动条没有滚动到相应的位置  就使用滚动方法
    $('#dg').datagrid('scrollTo',index);  // Scroll to the specified row. This method is available since version 1.3.3.
    LZ具体可以去参考easyui doc
      

  2.   

    关键不是这个,你这行要写在哪边,写在翻页事件里onSelectPage?
      

  3.   

    写在onSelectPage事件里翻页数据不更新啊,可能是重写了这个事件的缘故。
      

  4.   

    放到页面数据加载成功事件里处理,行定位。onLoadSuccess : function(data)
    {
        if (data && data.total > 0)
           $('#dg').datagrid('selectRow',行号
    }
    );