I am using igniteUI grid 2012.2 . I wanted to make some cells readonly in some rows conditionally. I used the the event "editCellStarting" and returned false based on the column and condtion. It made the cells readonly as I wanted. But noticed, after adding the event code, the "Done" button is not consistenly getting enabled on editing other ediable cells. Attached is the grid definition along with the event code. Is it a bug? Is there any workarond? Please help.
Hello Benny,
The problem comes from the "MacId" column which has a mask editor. You configured the input mask for the editor to be "AA:AA:AA:AA:AA:AA". This means that this field should always be filled with the correct values ("A" mask symbol denotes a required character). Moreover you set this field to be also required. This combination prevents the Done button to enable itself because the igMaskEditor.isValid API used by the igGridUpdating in most cases returns true.
To overcome this issue you can set the "MacId" editor input mask to be "aa:aa:aa:aa:aa:aa".
Hope this helps,
Martin Pavlov Infragistics, Inc.
Hi Martin,
Thanks for the reply. I tried changing the the setting as below. It did not work. I was not sure of the mask string to use, Actually I want alphanumeric with ":" in between.
columnKey: "MacId", required: true, editorOptions: { type: "mask", inputMask: "aa:aa:aa:aa:aa:aa" }
But if I remove the required : true , Done button enables, but I wanted that field as required also. Could you please help. columnKey: "MacId", editorOptions: { type: "mask", inputMask: "aa:aa:aa:aa:aa:aa" }
I tried the below input mask. It works for me. BTW is there an input mask for Hexadecimal? I could n't find one. Currently using this mask and doing the Hex validation in the event iggridupdatingeditrowending using js regex.
columnKey: "MacId", required: true, editorOptions: { type: "mask", inputMask: "AA\:AA\:AA\:AA\:AA\:AA" }