[WB20] Disable or hide checkbox on a line in TreeTable ?

Startbeitrag von Danny Lauwers am 08.01.2016 10:40


I have a treetablecontrol on a page that displays some data. It is filled programmatically.
The master lines of the tree the controls in some columns should be hidden or grayed because those options only apply to the sublines.

I have tried to use this code in the Row Display of the table, but it does not compile !

HTABLE_Lines[nRow].gpclPresenter_clLines_List_m_bDetailsFirst..Visible = False

Also tried State, but I get the error that Visible and State properties are readonly !!

How can I disable a certain cell (row/col) in a treetable in WebDev ?

This could also happen when you select a certain value from a combobox in the treetable, that would disable the other cells not applicable anymore, here you also have to enable or disable the cells of the table via code ?



Hi Danny,

You could add some attributes for the visible property of the controls and set them when adding the lines.


von Piet van Zanten - am 08.01.2016 12:18
Hi Danny,

Sorry, I was in Looper mode.
It is an option however to change/refactor the table into a looper.
Or use tablebreaks instead of treeview if you don't have many levels.


von Piet van Zanten - am 08.01.2016 12:39
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.