How to apply fewer options of drop down menu for specific rows of datatable?


I have a datatable with a drop down column named 'Color'.
The dropdown menu by default has four menu items as 'green', 'yellow', 'red' and 'blue'.

I want if the name column has value as 'Mark' then only 'green' and 'yellow' value to be shown in the corresponding dropdown cell. However , I am getting an error to achieve it .

Snippet is here :

Please help.



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!