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

您可能感兴趣的

前端的水有多深? 但凡从事互联网的人基本都会写几行 html,用过 Word 的人用 Dreamweaver 也能做出规整的页面,所以大部分人会很自然地认为“前端开发没什么技术含量,so easy”。当然从业者也有很多疑惑:做前端页面实现,没问题;兼容性,也...
iOS 与 JS 交互开发知识总结 hybrid.jpg 前言 Web 页面中的 JS 与 iOS Native 如何交互是每个 iOS 猿必须掌握的技能。而说到 Native 与 JS 交互,就不得不提一嘴 HyBird。 Hybird 的翻译结果...
What’s the difference between a library and ... People have different definitions for library and framework One definition I know is: a framework is ...
Find items in Javascript I need to find a div with class "kinder" that have a element "a". I need to get and alert the href attribute from a. ...
this到底指向哪里 this指向调用它的对象 首先要明确,this指向调用方,谁调用,this指向谁。 直接调用 举个栗子: var test = 'window' ; function testThis () { var t...