Is it possible to programaticaly assign maximum value to editors?


Hi everyone!

I’m trying to set a maximum value to a progress editor that depends on the task status, but I can’t find where to put some settings on how to control this maximum value.

const progressEditor = {
        type: "number",
        map_to: "progress",
        min: 0,
        max: 100

So, is it possible to assign this max value depending on the task status?



The progress is saved in values between 0 and 1:

To make it work the way users expect it to work, you need to do the following things:

  1. Convert the displayed values in the grid by using the template and add the % symbol:
  2. Covert the actual values before opening the inline editor and after saving the changes. That can be done by using the onEditStart and onBeforeSave event handlers:

Here is the snippet that demonstrates how it works: