Add Event After Init , for specific column

Hello:

I want to ask one question about how to add event for a specific column , thanks.



The detais is : there is an DatePicker column in my grid, all of the grids in my production will follow one order , it is DatePicker can be modified by type , and if the content typed is invalid , there would be a function to change the date to be today. So I have the function in a js file , how can I add an event to attach the function after inited ? I will appreciate your help

You can attach method to the grid by

grid.attachEvent(“event name”,code)

In you case it will probably be a

grid.attachEvent(“onEditCell”,function(stage,id,ind){
if (stage==2 && ind == INDEX){
…exec your code…
}
})

where INDEX - index of column in question