Author Topic: Change the editor of a cell dynamically  (Read 2492 times)

[email protected]

  • Newbie
  • *
  • Posts: 5
    • View Profile
Change the editor of a cell dynamically
« on: May 10, 2016, 09:33:00 am »
Dear Sir,
 I am now to the Param Query grid. I need a small clarification.
I have a grid in which only some columns are editable with a column having select as editor. And based on the cell data of a particular row the select options should be changed only for that particular row not for every row.

i mean for example if i have three columns namely:
Status | Role | Remarks

Status is having Approve and reject as options in editor select.
If someone selects Approve then only my Role column should be loaded with select Options:Admin and User.   And the remarks column should be not editable.
If someone selects reject then no option in role should be shown.And remarks column should be editable.
Here i am using batch editing....

Could you please suggest me a way to solve this.
Thanks in advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6265
    • View Profile
Re: Change the editor of a cell dynamically
« Reply #1 on: May 12, 2016, 11:26:23 pm »
You could use the callback variant for editor.options, check the runtime conditions within the callback and return options accordingly.