This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

disable columns in table

General questions regarding the development with JVx.

disable columns in table

Postby lucdep » Fri Mar 29, 2019 1:51 pm

Hi,

Can I make one or more Columns in a (Navigation)Table not editable (disabled?) but still visible, while the other Columns remain editable (enabled?)
The setEditable method from UITable works for the whole Table, not for just a Column?

Thanks


Luc
lucdep
 
Posts: 53
Joined: Wed Oct 10, 2018 12:01 pm

Re: disable columns in table

Postby Support@SIB » Fri Mar 29, 2019 3:07 pm

This is possible via model:

e.g.

Code: Select all
dataBook.getRowDefinition().getColumnDefinition("NAME").setReadOnly(true);

The model notifies all editors and cell in a table. So its enough to change the model and all UI controls will be correct.
User avatar
Support@SIB
 
Posts: 353
Joined: Mon Sep 28, 2009 1:56 pm

Re: disable columns in table

Postby lucdep » Mon Apr 01, 2019 6:46 am

Thanks!
lucdep
 
Posts: 53
Joined: Wed Oct 10, 2018 12:01 pm


Return to Development