Categories | Question details Back To List | ||
re:onclick event in grid what is parameter ind and INDEX is it defined in grid it self, i have used what you have directed but grid is failing 'object expected ' error is thrown. when this function i need to add while i am creating a grid?please advice. ------------------------ onclick event ion grid hi , how do i add onclick event in particular column,column has int value so sorting also should be taken care off. Answer posted on Nov 14, 2007 01:46 If you want to handle click on gird header for specific column grid.attachEvent("onHeaderClick",function(ind){ if (ind ==INDEX){ // do anything here } return true; }) If you need to handle click on any data cell grid.setOnRowSelectHandler(function(id,ind){ if (ind ==INDEX){ // do anything here } return true; },true) Answer posted on Nov 14, 2007 08:31 In sample code above INDEX - must be replaced with index of column for which you need to catch onclick event All other variables are incoming param of event, id - id of row which was selected, ind - idex of column which was clicked|selected |