Categories | Question details Back To List | ||
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 Answer posted by Support on Jan 16, 2009 03:40 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 |