ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: developer1 on June 10, 2022, 07:29:41 pm

Title: I need to disable some element from the list in the dropdown based on logic
Post by: developer1 on June 10, 2022, 07:29:41 pm
Provide a demo where I can disable of selection of item from dropdown based on the logic
Title: Re: I need to disable some element from the list in the dropdown based on logic
Post by: developer1 on June 11, 2022, 12:04:56 pm
For your reference screenshot attached,

We are facing the issue to setup the item in dropdown list.

We have two requirements,
1)   Need to disable some item for selection
2)   Need some extra space in the item hierarchy-wise
Title: Re: I need to disable some element from the list in the dropdown based on logic
Post by: paramvir on June 13, 2022, 12:09:06 pm
1. option can be disabled dynamically by adding pq_disabled: true property

Please check editor.options callback in this example https://paramquery.com/pro/demos/editors_conditional

2. leading space can be added by adding   in the option text.
e.g., { "value": "SE", "text": " Speedy Express" }