ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
I need to disable some element from the list in the dropdown based on logic
« previous
next »
Print
Pages: [
1
]
Author
Topic: I need to disable some element from the list in the dropdown based on logic (Read 398 times)
developer1
Pro Ultimate
Newbie
Posts: 44
I need to disable some element from the list in the dropdown based on logic
«
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
Logged
developer1
Pro Ultimate
Newbie
Posts: 44
Re: I need to disable some element from the list in the dropdown based on logic
«
Reply #1 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
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: I need to disable some element from the list in the dropdown based on logic
«
Reply #2 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" }
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
I need to disable some element from the list in the dropdown based on logic