cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SingleSelect mode while ignoring some rows?

Former Member
0 Kudos

Hi Folks,

I am using the "SingleSelectLeft" mode in my table to make each row selectable:

Is there a way to exclude some rows from being selectable? How can I remove the radio button in row 2 and row 3?

Cheers,

Saqib

Accepted Solutions (0)

Answers (1)

Answers (1)

saivellanki
Active Contributor
0 Kudos

Hi Saqib,


Yes, you can. But there should be some condition where you have to disable selected rows.

Check this sample: JS Bin - Collaborative JavaScript Debugging

In the above sample, select is disabled for products where the weight is less than '40'.

Regards,

Sai Vellanki.


former_member182862
Active Contributor
0 Kudos

I like Sai's solution.

We can optimize it by not setting enabled when it is true like this

JS Bin - Collaborative JavaScript Debugging

Thanks

-D