Smartgwt Enable scrolling in grid disabled

综合技术 2018-05-15 阅读原文

I have a small smartgwt listgrid which can only display 3 records at a time, but can theoretically have more then 10 records. Our UI design is to enable the grid only when the user enters editing mode. As long as this does not happen, the user should not be able to select(assign) a record. The grid contains only a selection checkbox column and a name column. Here's the code for the selection.


But as long is the grid is disabled scrolling is also disabled. Is there a way to enable scrolling on a disabled grid? It would also be OK, to not disable the grid and only prevent selection of the checkboxes. Is there a way to set the grid to read only mode or something?

We use smartgwt 6.0p and gwt 2.6.

We had a similar case. We went on to use:

set_canEdit(boolean canEdit)

on all of the records.

Hello, buddy!

责编内容by:Hello, buddy!阅读原文】。感谢您的支持!


JavaScript异步编程大冒险: Async/Await Async/Await 也就是大家知道的异步函数,它是一个用来控制 JavaScript 异步流程的一个记号。而在很多现代浏览器上也曾实现过这样的设想。它的灵感...
Collective #429 Collective #429 July 2, 2018 View All Shotsnapp * fakeScro...
一个炫酷大屏展示页的打造过程 作者:韩永豪 移动开发部 前端开发工程师 今年的11月初,我们公司参加了「2017年亚洲幼教年会(APEAC)」并取得了很不错的成果。本人有...
使用Flow来检测你的JS 最近在一篇文章上看见了关于Flow的介绍,觉得它很不错,虽然之前在项目中使用Typescript已经很顺手了,再使用Flow感觉有点累赘了,但多学点总是没错的。...
Capture the values ​&ZeroWi... I have a form that is somewhat like a calculator. A number is entered into a tex...