cancel
Showing results for 
Search instead for 
Did you mean: 

changing colour of selected row to orange

Former Member
0 Kudos

Hi,

I have requirement that selected row of the table should be highlighted in orange colour.

Currently, my table selection and associated events are working fine.

Only problem is selected row is not getting highlighted.

Can anyone tell me which property of the table I should modify?

Thanks in advance,

Apurva

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Check the tabble property <b>selectionMode</b> it should not be multinoLead.

if its change to auto and test .

To set the lead selection

wdContext.node<YourNode>().setLeadSelection(<Index>);

index starts from 0.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyappa,

The selectionMode of the table is auto. I have created an action HighlightRow and this action is getting called on the event onLeadSelection. I have placed the code given by you in the Action.

However, the row is not getting highlighted.

What am I missing.

Nikhil

former_member197348
Active Contributor
0 Kudos

Hi Apurva,

Use this code

wdContext.node<Tablenodename>.setLeadSelection(rownumber-1);

It highlights the row.

Note:Row number starts from <b>1</b> and node index starts from <b>0</b>

regards,

Siva