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.

gridRealmDt.setCanSelectAll(false);
gridRealmDt.setSelectionType(SelectionStyle.SIMPLE);
gridRealmDt.setSelectionAppearance(SelectionAppearance.CHECKBOX);

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!阅读原文】。感谢您的支持!

您可能感兴趣的

Stealth Cryptocurrency Mining Sites Can Now Run Ev... Over the last two months, we’ve seen arapid proliferation of websites that mine cryptocurrencies while users visit...
What’s the difference between a library and ... People have different definitions for library and framework One definition I know is: a framework is ...
How do I redirect to a specific division of a hidd... My HTML: Energy Profile Statistics.... some stuff ........ some stuff ....My JavaScript co...
Adding audio to your Story Map Tour Story Map Tour is ideal when you want to present an ordered, place-based narrative featuring images or videos. Each “st...
Split a JavaScript string into fixed-length pieces I would like to split a string into fixed-length ( N , for example) pieces. Of course, last piece could be shorter...