Categories | Question details Back To List | ||
Adding a datepicker in each row of a specific column & adding a checkbox in each row Hello all, I want to add a datepicker and a checkbox in each row of a specific column in dhtmx grid. Which .js file i have to look for in order to accomplish the same. Thanks in advance Answer posted by dhxSupport on May 25, 2009 00:09 To add checkboxed to the specific column you should to use "ch" eXcell type for this column. You should to include dhtmlxgridcell.js file. To use datepicker you should to use "dhxCalendar" or "dhxCalendarA" types and includue dhtmlxgrid_excell_dhxcalendar.js file from the dhtmlGrid package and dhtmlxcalendar.css, dhtmlxcalendar.js files from the dhtmlxCalendar package. Answer posted by Kunal Bhatia on May 25, 2009 01:50 Hello, I have already imported the .js file....but i'm looking for the function declaration... either resultDhtmlxGrid.setColTypes("ch"); OR resultDhtmlxGrid.setColumnExcellType(colIndex,type); ----where to declare these??? Answer posted by dhxSupport on May 25, 2009 03:16 setColTypes() method is used to declare all columns types before grid initialization. setColumnExcellType(colIndex,type) is used to change dinamically column type after grid was initialized. You should call this method after grid was fully loaded: mygrid.load("grid.xml",function(){ mygrid.setColumnExcellType(colIndex,type); }) setColumnExcellType necessary, when you need to change type of some column dynamically ( for example , on some condition convert column from ed to ro ) |