Number editor type allow to enter grater values while set min and max properties


#1

Hi support,
i am using Inline editor number type. i ser min and max values as sample explain. but it allows me to enter values not in mention range.
Inline editing (dhtmlx.com)

this example also allow to enter values grater than 100.

thanks.
Rasagb


#2

Hello,
Thank you for letting us know about the issue. I’ve submitted it to our internal bug tracker. The dev team will fix it in the future, but I cannot give you any ETA.
As a workaround, you can use the Inline Editors Extension:
https://docs.dhtmlx.com/gantt/desktop__inline_editors_ext.html ;
You can apply your validation rules to onBeforeSave handler, for example:

inlineEditors.attachEvent("onBeforeSave", function(state){
    if (state.newValue > 100){
        return state.newValue = 100;
    }
    if (state.newValue < 0) {
        return state.newValue = 0;
    }
   return true;
});

Please check the following snippet:
https://snippet.dhtmlx.com/wmbbrdvq