cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically setting individual table rows to readonly

Former Member
0 Kudos

Hi

I would like to set specific rows of a table to read-only if the row contains any data. Hence if the row is empty, the user can enter data, but can't change data that already exists.

Does anybody have any idea on how I could accomplish this?

thanks in advance

Anton Kruse

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Noel,

Inside the value node(which is bound to your table), create a value attribute of type 'boolean, say 'RowReadonly'

Bind this 'RowReadonly' to 'readonly' property of all celleditors of your table's all columns.

Then if you want to make the i-th row of you table read only, give

wdContext.node<YourTablesValueNode>().get<YourTablesValueNode>elementAt(i).setRowReadonly(true);

for all other rows, for which,are not to be readonly

wdContext.node<YourTablesValueNode>().get<YourTablesValueNode>elementAt(i).setRowReadonly(false);

thanks

Smitha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

check

Regards

Abhijith YS