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! (源链)。感谢您的支持!

您可能感兴趣的

Designing for Research If you’ve spent enough time developing for the web, this piece of feedback has landed in your inbox ...
React系列——快速理解babel6配置过程 繁琐的配置? 你能快速读懂babel的官方文档吗? 你能根据官方文档快速配置好babelrc吗? 你能明白自己需要哪些插件吗? 没有搞明白这3个问题,请往下看。 快速理解babel...
I want to break the line in textarea with shift &a... This is my textbox with textarea . function getNextElement(id, e) { if (e.ke...
Can not use two nivo cursors in web page i need two different sliders for my webpage. on clicking an icon one will be displayed and on clicki...
Rust and JavaScript interoperability coming via We... Mozilla is working on a bridge between types in JavaScript and theRust language, called wasm-bindge...