disable certain dropdown options when editing based on current row

Questionsdisable certain dropdown options when editing based on current row
obaidan asked 3 months ago

Hi,

I have a lookup column. When i edit a row, I want to disable (not hide)  some options from the dropdown based on the current row that is being edited.

How to do that?

 

Regards

1 Answers
Abu Ghufran Staff answered 3 months ago

Hello,

In the html after grid output, you can have following JS function in which you can disable dropdown option based on ids. This demo disabled dropdown option id:1 when row’s tax field > 50

Line 161: https://gist.github.com/gridphp/525bff768b17f8af659987c1f4d481eb

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

2 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?