Author Topic: Validation Message not showing  (Read 2094 times)

kshipra

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 94
    • View Profile
Validation Message not showing
« on: March 29, 2017, 04:04:29 am »
I have validations set up for each column, but validation message is not showing if a cell is empty.

{
               title: "Name",
               editor: { type: 'textarea', attr: 'rows=2' },
               width: 230,
               dataIndx: "Name",
               filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'] },
               editable: function (ui) {
                   if (ui.rowData['IsBaseEvent'] === true) {
                       return false;
                   } else {
                       return true;
                   }
               },
               validations: [{ type: 'minLen', value: 3, msg: "Required" }]
           },
           {
               title: "Code",
               width: 100,
               dataIndx: "Code",
               filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'], align: "center" },
               editable: function (ui) {
                   if (ui.rowData['IsBaseEvent'] === true) {
                       return false;
                   } else {
                       return true;
                   }
               },
               validations: [{ type: 'minLen', value: 1, msg: "Required" }]
           },


 editModel: {
                saveKey: $.ui.keyCode.ENTER,
                clicksToEdit: 1
               
            },
            editor: {
                select: true
            },

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: Validation Message not showing
« Reply #1 on: March 31, 2017, 02:50:27 pm »
Kindly post a jsfiddle demonstrating the issue.