on 08-10-2005 2:54 PM
In my scanerio:
there is a table, I want to let only one cell of this table to be selected, neither the whole row not the whole column,
It should look like only this single cell has the background color different from all other cells in this table.
I have tried to set the background of the celleditor as the value "marked1", my table celleditor is a TextView.
but the selected background color can not cover the whole table cell, it seems there is some cellpadding around the TableCellEdtior. I didn't find any place to set the cellpadding for the TableCellEditor.
Is there any solution, please kindly help me.
Hi,
You can create a contextAttribute of type boolean inside the same node to which table is bound and bind this attribute to the enable property of the particular cell .
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
AFIK it not possible to change the colour of the table cell. But you can change the tableCellEditor design so that user knows that he has already selected that row. In case of textView as table cell editor, you can create an attribute of type TextViewDesign from the local dictionary -> uielementdefinitions -> select TextViewDesign.
Now in the wdinit() set this as
ele.setDesign(WDTextViewDesign.STANDARD)
for each table element.
In the onLeadSelect() action write this code
wdContext.nodeTableNode().getTableNodeElementAt(wdContext.nodeTableNode().getLeadSelection()).setDesign(WDTextViewDesign.<Choose whichever suits your requirement>)
Hope this helps.
Regards,
Jaydeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you set "SelctionMode" to "None" then there is no way to know the table row selection.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My original destination is:
I want a table without the selection column(at the left side of every table, there is a column for selection, only the block for mouse selection), when i set the property "selectionMode" to "node", this column disppeared, but when i click the one of row in the table, there is no change to display this row was selected.
So I want no selection column but when i click one row, the background color will changed to express that this row was selected. Is it possible?
I want to change the background of cell to reach that destination. But it seems doesn't work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.