Categories | Question details Back To List | ||
Re refering individual combo box This is in line with my question asked earlier. Can you please let me knw which java script needs to be modified curreintly i am using dhtmlgrid 1.4 ,or how to get latest version or if not how can i achieve it through xml.. in my case value of one individual combo box is dependent on its previous one..and population is dynamic using Ajax so i have to refer them at individual level Thanks and regards Awkash ---------------------------------------------- By default, list of options is common for all rows in same column. Starting from dhtmlxgrid 1.4 it was possible to define different options sets for different rows from xml In latest version it possible to do by JS API as well Instead of combo=mygrid.getCombo(3); you can use combo=mygrid.getCustomCombo(rowID,3); where rowID - id of row, for which combo need to be taken Please beware that getCustomCombo will work only if row in question already exists in grid. Answer posted by Support on Jan 15, 2008 01:46 >>Can you please let me knw which java script needs to be modified Just add next code to your app's page, or in the end of dhtmlxgrid.js dhtmlXGridObject.prototype.getCustomCombo=function(id,ind){ var cell= this.cells(id,ind).cell; if (!cell._combo) cell._combo = new dhtmlXGridComboObject(); return cell._combo; } |