点击新增行按钮后,每次都会返回到第一行,是否有参数可以控制显示在最后一行,这样对用户比较友好。

image.png (14.7 KB)

@feng.qun.zhu.avaryholding.com

您好,

感谢您的建议。我们非常理解在添加新行后保持视图焦点在最后一行对提升用户体验的重要性。目前,控件在添加行后的默认行为确实可能会重置滚动位置。

这是一个非常实用的功能需求,我已经将其记录问题单CELLSGRIDJS-2494并提交给我们的开发团队进行评估,探讨在未来的版本中添加相关参数或配置项来控制此行为的可能性。

一旦该功能有进一步的更新或进展,我们会第一时间通知您。感谢您对 Aspose 的支持。

@feng.qun.zhu.avaryholding.com
js loadoption 里面需要设置 batchInsertAutoScrollToBottom 为true

比如:

            const option = {
                updateMode: 'server',
                updateUrl: '/GridJs2/UpdateCell',
                showToolbar: true,
   
                mode: 'edit',
                //support multiple language ,the locale is: en zh es pt de ru nl
                local: 'en',
                batchInsertAutoScrollToBottom:true,
                //showTranslateButton: true,
            };
            loadWithOption(jsondata, option);

The issues you have found earlier (filed as CELLSGRIDJS-2494) have been fixed in this update. This message was posted using Bugs notification tool by leoluo