Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Prevent list grid fire changedOnKeypress

    Hi,

    Is there any ways to prevent change event fire on keypress on grid when inline editing row?

    Code:
    isc.ListGrid.create({
        ID: "countryList",
        canEdit: true,
        width:500, height:224, alternateRecordStyles:true,
        fields:[
            {name:"countryCode", title:"Code"},
            {
              name:"countryName", title:"Country",
              type: 'text',
              editorType: 'TextItem',
              changeOnKeypress: false,
              changed: function(form, item, value) {
                console.log('CountryName changed')
              }
            },
            {name:"independence", title:"Nationhood", type:"date", width:100},
            {name:"population", title:"Population", type:"integer"},
            {name:"gdp", title:"GDP", type:"float"}
        ],
        data: countryData
      })

    #2
    changeOnKeypress is not a property of ListGridField - you want to place it in editorProperties instead, where it will work as documented.

    Comment


      #3
      It worked. Thank you.

      Comment

      Working...
      X